我正在使用wso2bam-2.4.0和外部apache-cassandra-2.0.2。
我用java选项运行wso2:
-Ddisable.cassandra.server.startup=true \
当我执行任何“insert overwrite table ....”时,会发生以下错误:
TID: [0] [BAM] [2013-11-22 17:21:59,590] WARN {org.apache.hadoop.mapred.JobClient} - Use GenericOptionsParser for parsing the arguments. Applications should implement Tool for the same. {org.apache.hadoop.mapred.JobClient}
TID: [0] [BAM] [2013-11-22 16:58:36,889] WARN {org.apache.hadoop.mapred.LocalJobRunner} - job_local_0001 {org.apache.hadoop.mapred.LocalJobRunner}
java.io.IOException: java.io.IOException: java.lang.RuntimeException: unable to load sub/comparator
at org.apache.hadoop.hive.io.HiveIOExceptionHandlerChain.handleRecordReaderCreationException(HiveIOExceptionHandlerChain.java:97)
at org.apache.hadoop.hive.io.HiveIOExceptionHandlerUtil.handleRecordReaderCreationException(HiveIOExceptionHandlerUtil.java:57)
at org.apache.hadoop.hive.ql.io.HiveInputFormat.getRecordReader(HiveInputFormat.java:243)
at org.apache.hadoop.hive.ql.io.CombineHiveInputFormat.getRecordReader(CombineHiveInputFormat.java:511)
at org.apache.hadoop.mapred.MapTask$TrackedRecordReader.(MapTask.java:197)
at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:417)
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:371)
at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:211)
答案 0 :(得分:0)
好像你的cassandra集群没有正确连接BAM服务器。确保在Hive脚本中正确提及您的凭据和IP /端口等。或者您可以在master-datasource.xml中正确提及它们。如果一切正确,请尝试使用Cassandra 1.x版本。