<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Getting &amp;quot;Exception in thread &amp;quot;main&amp;quot; java.lang.NullPointerException&amp;quot; message when using &amp;quot;--hiveconf hive.fetch.task.conversion=none&amp;quot; to start hive celi through  a beeline connection in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-quot-Exception-in-thread-quot-main-quot-java-lang/m-p/178885#M77656</link>
    <description>&lt;P&gt;This is not an issue any more somebody ran hive on safe mode therfore beeline.properties files was created. Check below link.&lt;/P&gt;&lt;P&gt;It gave me the root cause, but in order to fix specifically my issue, I needed either to delete the beeline.properties file created, remove below property or comment it out within beeline.properties files located on &lt;/P&gt;&lt;PRE&gt;/home/&amp;lt;user_account&amp;gt;/.beeline/beeline.properties&lt;/PRE&gt;&lt;PRE&gt;beeline.hiveconfvariables={}&lt;/PRE&gt;&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/HIVE-16116" target="_blank"&gt;https://issues.apache.org/jira/browse/HIVE-16116&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Apr 2018 21:51:51 GMT</pubDate>
    <dc:creator>JLo_Hernandez</dc:creator>
    <dc:date>2018-04-27T21:51:51Z</dc:date>
    <item>
      <title>Getting "Exception in thread "main" java.lang.NullPointerException" message when using "--hiveconf hive.fetch.task.conversion=none" to start hive celi through  a beeline connection</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-quot-Exception-in-thread-quot-main-quot-java-lang/m-p/178884#M77655</link>
      <description>&lt;P&gt;
	I have 2 edge nodes where I can do this, one is working properly and the other is not. I want to know what should I need to check in order to clear posted message when accessing to hive through beeline?&lt;/P&gt;&lt;P&gt;This is the one is not working:&lt;/P&gt;&lt;PRE&gt;beeline -n srvc_ima_platform -u 'jdbc:hive2://server:2181,server:2181,server:2181/ea_fin;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2;?tez.queue.name=srvc_platform' --showHeader=false --outputformat=tsv2 --hiveconf hive.fetch.task.conversion=none
Exception in thread "main" java.lang.NullPointerException
        at org.apache.hive.beeline.BeeLine.initArgs(BeeLine.java:677)
        at org.apache.hive.beeline.BeeLine.begin(BeeLine.java:777)
        at org.apache.hive.beeline.BeeLine.mainWithInputRedirection(BeeLine.java:491)
        at org.apache.hive.beeline.BeeLine.main(BeeLine.java:474)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.hadoop.util.RunJar.run(RunJar.java:233)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:148)


&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this is he one working properly, both cli are exactly the same:&lt;/P&gt;&lt;PRE&gt;beeline -n srvc_ima_platform -u 'jdbc:hive2://server:2181,server:2181,server:2181/ea_fin;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2;?tez.queue.name=srvc_platform' --showHeader=false --outputformat=tsv2 --hiveconf hive.fetch.task.conversion=none
Connecting to jdbc:hive2://server:2181,server:2181,server:2181/ea_fin;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2;?tez.queue.name=srvc_platform
Connected to: Apache Hive (version 1.2.1000.2.6.0.24-2)
Driver: Hive JDBC (version 1.2.1000.2.6.0.3-8)
Transaction isolation: TRANSACTION_REPEATABLE_READ
Beeline version 1.2.1000.2.6.0.3-8 by Apache Hive
0: jdbc:hive2://server:2&amp;gt;



&lt;/PRE&gt;&lt;P&gt;Regards!!&lt;/P&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Apr 2018 03:27:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-quot-Exception-in-thread-quot-main-quot-java-lang/m-p/178884#M77655</guid>
      <dc:creator>JLo_Hernandez</dc:creator>
      <dc:date>2018-04-25T03:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Getting "Exception in thread "main" java.lang.NullPointerException" message when using "--hiveconf hive.fetch.task.conversion=none" to start hive celi through  a beeline connection</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-quot-Exception-in-thread-quot-main-quot-java-lang/m-p/178885#M77656</link>
      <description>&lt;P&gt;This is not an issue any more somebody ran hive on safe mode therfore beeline.properties files was created. Check below link.&lt;/P&gt;&lt;P&gt;It gave me the root cause, but in order to fix specifically my issue, I needed either to delete the beeline.properties file created, remove below property or comment it out within beeline.properties files located on &lt;/P&gt;&lt;PRE&gt;/home/&amp;lt;user_account&amp;gt;/.beeline/beeline.properties&lt;/PRE&gt;&lt;PRE&gt;beeline.hiveconfvariables={}&lt;/PRE&gt;&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/HIVE-16116" target="_blank"&gt;https://issues.apache.org/jira/browse/HIVE-16116&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 21:51:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-quot-Exception-in-thread-quot-main-quot-java-lang/m-p/178885#M77656</guid>
      <dc:creator>JLo_Hernandez</dc:creator>
      <dc:date>2018-04-27T21:51:51Z</dc:date>
    </item>
  </channel>
</rss>

