works fine: select * from hivetbl_betateamcity_webhook_payloads
fails: select count(1) from hivetbl_betateamcity_webhook_payloads
fails: select count(*) from hivetbl_betateamcity_webhook_payloads
External table definition
CREATE EXTERNAL TABLE HiveTbl_betateamcity_webhook_payloads (
datetimestamp timestamp,
version string,
Buildlog_url string,
Teamcity_buildid string,
Teamcity_url string,
build_status string,
headers_request_uri string,
message string)
STORED BY 'org.elasticsearch.hadoop.hive.EsStorageHandler'
TBLPROPERTIES
(
'es.nodes' = '10.212.46.2',
'es.index.auto.create' = 'false',
'es.resource' = 'betateamcity_webhook_payloads',
'es.query' = '?q=*',
'es.mapping.names' = 'datetimestamp:@timestamp , version:@version, Buildlog_url:Buildlog_url, Teamcity_buildid:Teamcity_buildid, Teamcity_url:Teamcity_url, build_status:build.status, headers_request_uri: headers.request_uri, message:message '
);
Hive error:
17/03/22 16:38:38 ERROR status.SparkJobMonitor: Status: Failed
17/03/22 16:38:38 INFO log.PerfLogger: </PERFLOG method=SparkRunJob start=1490225917349 end=1490225918350 duration=1001 from=org.apache.hadoop.hive.ql.exec.spark.status.SparkJobMonitor>
17/03/22 16:38:38 ERROR ql.Driver: FAILED: Execution Error, return code 3 from org.apache.hadoop.hive.ql.exec.spark.SparkTask
17/03/22 16:38:38 INFO log.PerfLogger: </PERFLOG method=Driver.execute start=1490225917275 end=1490225918354 duration=1079 from=org.apache.hadoop.hive.ql.Driver>
17/03/22 16:38:38 INFO ql.Driver: Completed executing command(queryId=hive_20170322163838_05bab898-7bf3-4523-83ef-87376c67af0e); Time taken: 1.079 seconds
17/03/22 16:38:38 INFO log.PerfLogger:
17/03/22 16:38:38 INFO log.PerfLogger: </PERFLOG method=releaseLocks start=1490225918354 end=1490225918376 duration=22 from=org.apache.hadoop.hive.ql.Driver>
17/03/22 16:38:38 ERROR operation.Operation: Error running hive query:
org.apache.hive.service.cli.HiveSQLException: Error while processing statement: FAILED: Execution Error, return code 3 from org.apache.hadoop.hive.ql.exec.spark.SparkTask
at org.apache.hive.service.cli.operation.Operation.toSQLException(Operation.java:374)
at org.apache.hive.service.cli.operation.SQLOperation.runQuery(SQLOperation.java:180)
at org.apache.hive.service.cli.operation.SQLOperation.access$100(SQLOperation.java:72)
at org.apache.hive.service.cli.operation.SQLOperation$2$1.run(SQLOperation.java:232)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:415)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1693)
at org.apache.hive.service.cli.operation.SQLOperation$2.run(SQLOperation.java:245)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Note: here my hive.execution.engine=spark; but we are getting this error with mr as well.
Note: Logstash is writing to the same IP address and not localhost.
please help, kind of urgent!