<?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: Hive upgrade HDP3 and Beeline in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-upgrade-HDP3-and-Beeline/m-p/217431#M84225</link>
    <description>&lt;P&gt;Thank you both for your help!&lt;/P&gt;</description>
    <pubDate>Thu, 11 Oct 2018 14:01:06 GMT</pubDate>
    <dc:creator>jeremyjjea</dc:creator>
    <dc:date>2018-10-11T14:01:06Z</dc:date>
    <item>
      <title>Hive upgrade HDP3 and Beeline</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-upgrade-HDP3-and-Beeline/m-p/217426#M84220</link>
      <description>&lt;P&gt;I am currently upgrading my cluster from HDP 2.6.5 to HDP 3.0.0 by following this &lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.7.0.0/bk_ambari-upgrade/content/prepare_hive_for_upgrade.html"&gt;guide&lt;/A&gt;. I successfully passed step 5 by adjusting the path but I have no idea what I should do for step 6 and 7. &lt;/P&gt;&lt;OL&gt;
&lt;/OL&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;5. Adjust the classpath in the following example pre-upgrade command to suit your environment, and then execute a dry run of preupgrading by running the command:&lt;/P&gt;&lt;PRE&gt;$JAVA_HOME/bin/java -Djavax.security.auth.useSubjectCredsOnly=false -cp /usr/hdp/current/hive-server2-hive2/lib/derby-10.10.2.0.jar:/usr/hdp/current/hive-server2-hive2/lib/*:/usr/hdp/current/hadoop/*:/usr/hdp/current/hadoop/lib/*:/usr/hdp/current/hadoop-mapreduce-client/*:/usr/hdp/current/hadoop-mapreduce-client/lib/*:/usr/hdp/current/hadoop-hdfs/*:/usr/hdp/current/hadoop-hdfs/lib/*:/usr/hdp/current/hadoop/etc/hadoop/*:/tmp/hive-pre-upgrade-3.1.0.3.0.0.0-1634.jar:/usr/hdp/current/hive-client/conf/conf.server:/usr/hdp/current/hive-metastore/lib/hive-metastore.jar:/usr/hdp/current/hive-metastore/lib/libthrift-0.9.3.jar:/usr/hdp/current/hadoop-client/hadoop-common.jar:/usr/hdp/current/hive-client/lib/hive-common.jar:/usr/hdp/current/hive-client/lib/commons-cli-1.2.jar:/usr/hdp/current/hadoop-client/lib/* org.apache.hadoop.hive.upgrade.acid.PreUpgradeTool -execute&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;6. Examine the scripts in the output to understand what running the scripts will do.&lt;/P&gt;&lt;P&gt;7. Login to Beeline as the Hive service user, and run each generated script to prepare the cluster for upgrading.&lt;/P&gt;&lt;P&gt;The Hive service user is usually the hive user. This is hive by default. If you don’t know which user is the Hive service user in your cluster, go to the Ambari Web UI and click Cluster Admin &amp;gt; Service Accounts, and then look for &lt;CODE&gt;Hive User&lt;/CODE&gt;.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;What should I type in beeline to go through with the upgrade?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2018 21:43:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-upgrade-HDP3-and-Beeline/m-p/217426#M84220</guid>
      <dc:creator>jeremyjjea</dc:creator>
      <dc:date>2018-10-10T21:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Hive upgrade HDP3 and Beeline</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-upgrade-HDP3-and-Beeline/m-p/217427#M84221</link>
      <description>&lt;P&gt;&lt;A href="@Jeremy Jean-Jean"&gt;&lt;EM&gt; @Jeremy Jean-Jean&lt;/EM&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;It's usually hive! Can you access the old 2.6.5  and invoke the beeline CLI&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;# su - hive 
$beeline&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;If you get the prompt then that confirms the user hive !&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2018 21:50:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-upgrade-HDP3-and-Beeline/m-p/217427#M84221</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-10-10T21:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Hive upgrade HDP3 and Beeline</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-upgrade-HDP3-and-Beeline/m-p/217428#M84222</link>
      <description>&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;I just tried and indeed I can invoke beeline from hive user. But what about the scripts that point 7. mentions? Should I write in beeline:&lt;/P&gt;&lt;PRE&gt;$JAVA_HOME/bin/java -Djavax.security.auth.useSubjectCredsOnly=false-cp /usr/hdp/current/hive-server2-hive2/lib/derby-10.10.2.0.jar:/usr/hdp/current/hive-server2-hive2/lib/*:/usr/hdp/current/hadoop/*:/usr/hdp/current/hadoop/lib/*:/usr/hdp/current/hadoop-mapreduce-client/*:/usr/hdp/current/hadoop-mapreduce-client/lib/*:/usr/hdp/current/hadoop-hdfs/*:/usr/hdp/current/hadoop-hdfs/lib/*:/usr/hdp/current/hadoop/etc/hadoop/*:/tmp/hive-pre-upgrade-3.1.0.3.0.0.0-1634.jar:/usr/hdp/current/hive-client/conf/conf.server:/usr/hdp/current/hive-metastore/lib/hive-metastore.jar:/usr/hdp/current/hive-metastore/lib/libthrift-0.9.3.jar:/usr/hdp/current/hadoop-client/hadoop-common.jar:/usr/hdp/current/hive-client/lib/hive-common.jar:/usr/hdp/current/hive-client/lib/commons-cli-1.2.jar:/usr/hdp/current/hadoop-client/lib/* org.apache.hadoop.hive.upgrade.acid.PreUpgradeTool -execute&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Oct 2018 22:03:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-upgrade-HDP3-and-Beeline/m-p/217428#M84222</guid>
      <dc:creator>jeremyjjea</dc:creator>
      <dc:date>2018-10-10T22:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Hive upgrade HDP3 and Beeline</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-upgrade-HDP3-and-Beeline/m-p/217429#M84223</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;A href="https://community.hortonworks.com/questions/224932/@Jeremy%20Jean-Jean"&gt;@Jeremy Jean-Jean&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I can see you have the &lt;STRONG&gt;-execute&lt;/STRONG&gt; option, this is &lt;STRONG&gt;ONLY&lt;/STRONG&gt; used when you want to run the pre-upgrade tool command in Ambari instead of on the Beeline command line which is the recommended method. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The &lt;STRONG&gt;-execute&lt;/STRONG&gt; option automatically executes the generated commands interactively, but if you what to run the scripts in beeline you need the command with the &lt;STRONG&gt;-location&lt;/STRONG&gt; option where the scripts to be run in beeline will be generated. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;So simply said if you don't want to generate and run the scripts in beeline use the &lt;STRONG&gt;-execute&lt;/STRONG&gt; option else use &lt;STRONG&gt;-location&lt;/STRONG&gt; and re-run in beeline the generated scripts &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;HTH&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 00:02:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-upgrade-HDP3-and-Beeline/m-p/217429#M84223</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-10-11T00:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Hive upgrade HDP3 and Beeline</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-upgrade-HDP3-and-Beeline/m-p/217430#M84224</link>
      <description>&lt;P&gt;This may work&lt;/P&gt;&lt;PRE&gt;beeline&amp;gt; !run ///C:/ScriptFile&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Oct 2018 03:10:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-upgrade-HDP3-and-Beeline/m-p/217430#M84224</guid>
      <dc:creator>ekoifman</dc:creator>
      <dc:date>2018-10-11T03:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Hive upgrade HDP3 and Beeline</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-upgrade-HDP3-and-Beeline/m-p/217431#M84225</link>
      <description>&lt;P&gt;Thank you both for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 14:01:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-upgrade-HDP3-and-Beeline/m-p/217431#M84225</guid>
      <dc:creator>jeremyjjea</dc:creator>
      <dc:date>2018-10-11T14:01:06Z</dc:date>
    </item>
  </channel>
</rss>

