<?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: When does Ambari create the Hive schema when using an external MySQL server? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/When-does-Ambari-create-the-Hive-schema-when-using-an/m-p/100911#M13658</link>
    <description>&lt;P&gt;I now see where the agent is calling initSchema... had missed it before.  &lt;/P&gt;&lt;P&gt;It fails when run from Ambari but succeeded when run from the cli. I'll accept an answer and drive on. &lt;/P&gt;</description>
    <pubDate>Tue, 29 Dec 2015 03:47:04 GMT</pubDate>
    <dc:creator>kkane</dc:creator>
    <dc:date>2015-12-29T03:47:04Z</dc:date>
    <item>
      <title>When does Ambari create the Hive schema when using an external MySQL server?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/When-does-Ambari-create-the-Hive-schema-when-using-an/m-p/100907#M13654</link>
      <description>&lt;P&gt;Ambari 2.1.2 - HDP 2.3.2&lt;/P&gt;&lt;P&gt;Startup of the Hive metastore fails because schema tool can't validate the the hive.VERSION table.  According to this, &lt;A href="http://docs.hortonworks.com/HDPDocuments/Ambari-2.1.2.1/bk_ambari_reference_guide/content/_using_hive_with_mysql.html,"&gt;http://docs.hortonworks.com/HDPDocuments/Ambari-2....&lt;/A&gt; Ambari is supposed to create the schema automatically with an HDP stack of 2.2 (I'm assuming later versions as well)&lt;/P&gt;&lt;P&gt;Kris&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2015 02:45:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/When-does-Ambari-create-the-Hive-schema-when-using-an/m-p/100907#M13654</guid>
      <dc:creator>kkane</dc:creator>
      <dc:date>2015-12-29T02:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: When does Ambari create the Hive schema when using an external MySQL server?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/When-does-Ambari-create-the-Hive-schema-when-using-an/m-p/100908#M13655</link>
      <description>&lt;P&gt;Hive schema is created only if the hive schema has not already been created and is created before starting Hive Metastore.&lt;/P&gt;&lt;P&gt;      create_schema_cmd = format("export HIVE_CONF_DIR={hive_server_conf_dir} ; "
                                 "{hive_bin}/schematool -initSchema "
                                 "-dbType {hive_metastore_db_type} "
                                 "-userName {hive_metastore_user_name} "
                                 "-passWord {hive_metastore_user_passwd!p}") &lt;/P&gt;&lt;P&gt;      check_schema_created_cmd = as_user(format("export HIVE_CONF_DIR={hive_server_conf_dir} ; "
                                        "{hive_bin}/schematool -info "
                                        "-dbType {hive_metastore_db_type} "
                                        "-userName {hive_metastore_user_name} "
                                        "-passWord {hive_metastore_user_passwd!p}"), params.hive_user)&lt;/P&gt;&lt;P&gt;      Execute(create_schema_cmd,
              not_if = check_schema_created_cmd,
              user = params.hive_user
      )&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2015 02:54:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/When-does-Ambari-create-the-Hive-schema-when-using-an/m-p/100908#M13655</guid>
      <dc:creator>jluniya</dc:creator>
      <dc:date>2015-12-29T02:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: When does Ambari create the Hive schema when using an external MySQL server?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/When-does-Ambari-create-the-Hive-schema-when-using-an/m-p/100909#M13656</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/261/kkane.html" nodeid="261"&gt;@kkane&lt;/A&gt;I just installed a couple of clusters last week and Ambari created the schema in MySQL Database I specified. So, there are two possible scenarios.&lt;/P&gt;&lt;P&gt;1.If this is fresh cluster install, I think there is issue with permission on database, please check the same.&lt;/P&gt;&lt;P&gt;2. If this is upgraded cluster, you should upgrade Hive metastore as well. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2015 02:55:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/When-does-Ambari-create-the-Hive-schema-when-using-an/m-p/100909#M13656</guid>
      <dc:creator>pardeep_kumar</dc:creator>
      <dc:date>2015-12-29T02:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: When does Ambari create the Hive schema when using an external MySQL server?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/When-does-Ambari-create-the-Hive-schema-when-using-an/m-p/100910#M13657</link>
      <description>&lt;P&gt;Today, Ambari calls "hive.cmd --service schematool -info ...", and if that fails, it assumes that the schema isn't created, so it then calls, "hive.cmd --service schematool -initSchema ..."

This works for HDP 2.0.6 and higher.&lt;/P&gt;&lt;P&gt;See &lt;A href="https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive.py#L70-L93"&gt;https://github.com/apache/ambari/blob/trunk/ambari...
&lt;/A&gt;Several internal Jiras have tracked this issue, BUG-14330, BUG-39736, BUG-17404&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2015 02:57:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/When-does-Ambari-create-the-Hive-schema-when-using-an/m-p/100910#M13657</guid>
      <dc:creator>afernandez</dc:creator>
      <dc:date>2015-12-29T02:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: When does Ambari create the Hive schema when using an external MySQL server?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/When-does-Ambari-create-the-Hive-schema-when-using-an/m-p/100911#M13658</link>
      <description>&lt;P&gt;I now see where the agent is calling initSchema... had missed it before.  &lt;/P&gt;&lt;P&gt;It fails when run from Ambari but succeeded when run from the cli. I'll accept an answer and drive on. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2015 03:47:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/When-does-Ambari-create-the-Hive-schema-when-using-an/m-p/100911#M13658</guid>
      <dc:creator>kkane</dc:creator>
      <dc:date>2015-12-29T03:47:04Z</dc:date>
    </item>
  </channel>
</rss>

