FAILED:SemanticException找不到类&org.elasticsearch.hadoop.hive.ESStorageHandler'

时间:2016-03-09 01:15:07

标签: elasticsearch hive hadoop2 elasticsearch-hadoop

我正在关注https://gist.github.com/costin/8025827示例,不知道为什么会出现此错误。任何回复都非常感谢。

hive> ADD JAR hdfs:///auxlib/elasticsearch-hadoop-2.2.0.jar ;
converting to localhdfs:///auxlib/elasticsearch-hadoop-2.2.0.jar
Added [/private/tmp/hive/elasticsearch-hadoop-2.2.0.jar] to class path
Added resources: [hdfs:///auxlib/elasticsearch-hadoop-2.2.0.jar]

hive> list jars;
/private/tmp/hive/elasticsearch-hadoop-2.2.0.jar

hive> CREATE EXTERNAL TABLE eslogs (time STRING, extension STRING,clientip STRING, request STRING, response INT, agent STRING) STORED BY 'org.elasticsearch.hadoop.hive.ESStorageHandler' TBLPROPERTIES('es.resource' = 'hive', 'es.mapping.names' = 'time:@timestamp');
  

失败:SemanticException找不到类' org.elasticsearch.hadoop.hive.ESStorageHandler'

0 个答案:

没有答案