Reply
Explorer
Posts: 23
Registered: ‎03-12-2014

Binary Compatibility

Can any on ehelp me on the below error:

 

When i start the hive am getting the below error:

 

cd /usr/lib/hive/bin/

 

 hive

 

/usr/lib/hive/bin/hive: line 72: [: /usr/lib/hive/lib/hive-exec-0.10.0.21.jar: binary operator expected
/usr/lib/hive/bin/hive: line 77: [: /usr/lib/hive/lib/hive-builtins-0.10.0.21.jar: binary operator expected
/usr/lib/hive/bin/hive: line 82: [: /usr/lib/hive/lib/hive-metastore-0.10.0.21.jar: binary operator expected
/usr/lib/hive/bin/hive: line 88: [: /usr/lib/hive/lib/hive-cli-0.10.0.21.jar: binary operator expected
/usr/lib/hive/bin/ext/util/execHiveCmd.sh: line 21: [: /usr/lib/hive/lib/hive-cli-0.10.0.21.jar: binary operator expected
Exception in thread "main" java.lang.ClassNotFoundException: /usr/lib/hive/lib/hive-cli-0/9/0/jar
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at org.apache.hadoop.util.RunJar.main(RunJar.java:149)

 

 

below is my hive-site.xml:

 

<configuration>

  <property>

    <name>javax.jdo.option.ConnectionURL</name>

    <value>jdbc:derby://localhost:1527/myderby1;create=true</value>

    <description>JDBC connect string for a JDBC metastore</description>

  </property>

  <property>

    <name>javax.jdo.option.ConnectionDriverName</name>

    <value>org.apache.derby.jdbc.ClientDriver</value>

    <description>Driver class name for a JDBC metastore</description>

  </property>

</configuration>

 

 

 

 

-Regards

Narayan

Expert Contributor
Posts: 163
Registered: ‎09-29-2014

Re: Binary Compatibility

you can see:

 

Exception in thread "main" java.lang.ClassNotFoundException: /usr/lib/hive/lib/hive-cli-0/9/0/jar

 

 

it seems some jar package can't be found.   if you have installed hive by CM, you can delete this service, then add again.