失败:semanticexception找不到类“org.elasticsearch.hadoop.hive.esstoragehandler”

5t7ly7z5  于 2021-06-26  发布在  Hive
关注(0)|答案(1)|浏览(748)

我在跟踪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”

dfty9e19

dfty9e191#

在$hive\u home/lib文件夹中添加elasticsearch-hadoop-2.3.0.jar和elasticsearch-hadoop-hive-2.3.0.jar文件后,我解决了这个问题。
希望它能和你一起工作。。

相关问题