----------------------------------------------------------------------------------------
2014-01-29 10:52:12,107 FATAL [main] org.apache.hadoop.mapred.
at edu.jhu.thrax.hadoop.features.
at edu.jhu.thrax.hadoop.features.
at org.apache.hadoop.mapreduce.
at org.apache.hadoop.mapred.
at org.apache.hadoop.mapred.
at org.apache.hadoop.mapred.
at java.security.
at javax.security.auth.Subject.
at org.apache.hadoop.security.
at org.apache.hadoop.mapred.
2014-01-29 10:52:12,213 INFO [main] org.apache.hadoop.metrics2.
2014-01-29 10:52:12,214 INFO [main] org.apache.hadoop.metrics2.
2014-01-29 10:52:12,214 INFO [main] org.apache.hadoop.metrics2.
----------------------------------------------------------------------------------------
解决的办法是重新下载thrax, 然后在hadoop2.0下编译, 用新生成的thrax.jar文件去替换原来的thrax.jar.
(参见https://github.com/jweese/thrax/wiki/Quickstart)
1) 下载thrax
git clone https://github.com/jweese/thrax.git
2) 编译
ant
需要修改build.xml (以下是做过修改的地方). 做修改后, 不需要设置环境变量, 但是要把JAVA_HOME的路径设置正确(/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64)
提供正确的jar files.
删除检测是否设置HADOOP, HADOOP_VERSION环境变量 (这两个环境变量的设置主要是为了能够找到合适的jar文件)
删除对init-amazon的依赖. 这样也不用去设置AWS_SDK环境变量
3) ant中会出现关于amazon的几个错误的解决办法
删除文件src/edu/jhu/thrax/util/amazon/AmazonConfigFileLoader.java
修改文件src/edu/jhu/thrax/util/ConfFileParser.java
(删除import edu.jhu.thrax.util.amazon.AmazonConfigFileLoader;
修改scanner = new Scanner(AmazonConfigFileLoader.getConfigStream(configURI));为scanner = new Scanner(DefaultConfigFileLoader.getConfigStream(configURI));)
没有评论:
发表评论