hadoop - Hive Server2 ACID transactions not working -


i using hadoop-2.6.0 secured kerberos. installed hive server2 1.1.0 version derby database connectionurl, enabled security , enabled authorization. when enabling transaction configuration, getting below exception , cannot execute queries;

exception

error: error while compiling statement: failed: lockexception [error 10280]: error communicating metastore (state=42000,code=10280) 

logs

[error 10280]: error communicating metastore org.apache.hadoop.hive.ql.lockmgr.lockexception: error communicating metastore @ org.apache.hadoop.hive.ql.lockmgr.dbtxnmanager.getvalidtxns(dbtxnmanager.java:300) @ org.apache.hadoop.hive.ql.driver.recordvalidtxns(driver.java:927)
caused by: metaexception(message:unable select transaction database, java.sql.sqlsyntaxerrorexception: table/view 'txns' not exist.

so have created below property in hive-site.xml file mentioned in blog here

configuration

 <property>       <name>hive.in.test</name>       <value>true</value>  </property> 

if set above property getting below exception struck , unable solve it. cannot run query use mydb;

exception

error: error while compiling statement: failed: nullpointerexception null (state=42000,code=40000) 

logs

error executing statement: org.apache.hive.service.cli.hivesqlexception: error while compiling statement: failed: nullpointerexception null @ org.apache.hive.service.cli.operation.operation.tosqlexception(operation.java:315) @ org.apache.hive.service.cli.operation.sqloperation.prepare(sqloperation.java:103)
caused by: java.lang.nullpointerexception @ org.apache.hadoop.hive.metastore.txn.txnhandler.checkqfiletesthack(txnhandler.java:1146) @ org.apache.hadoop.hive.metastore.txn.txnhandler.(txnhandler.java:117)

i need solution work acid transactions in hive server2. found 2 related questions not solved issue.

hive 0.14 update , delete queries configuration error

hive transactions crashing

upgrade hive mysql metastore db hive-txn-schema-0.14.0.mysql.sql follows..

mysql> source /usr/local/hadoop/hive/scripts/metastore/upgrade/mysql/hive-txn-schema-0.14.0.mysql.sql;


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -