<?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: Uppercase hive DB name in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Uppercase-hive-DB-name/m-p/99823#M12914</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/504/kkulkarni.html" nodeid="504"&gt;@Kuldeep Kulkarni&lt;/A&gt;&lt;P&gt;Not possible as of now. I just ran few tests but nothing. &lt;/P&gt;</description>
    <pubDate>Thu, 17 Dec 2015 19:45:06 GMT</pubDate>
    <dc:creator>nsabharwal</dc:creator>
    <dc:date>2015-12-17T19:45:06Z</dc:date>
    <item>
      <title>Uppercase hive DB name</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Uppercase-hive-DB-name/m-p/99821#M12912</link>
      <description>&lt;P&gt;Hey Guys,&lt;/P&gt;&lt;P&gt;Is it possible to create hive database name in UPPERCASE ?&lt;/P&gt;&lt;PRE&gt;hive&amp;gt; create database KULDEEP;
hive&amp;gt; show databases; 
OK 
default 
kuldeep 
test 
Time taken: 0.464 seconds, Fetched: 3 row(s)
&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Dec 2015 15:35:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Uppercase-hive-DB-name/m-p/99821#M12912</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2015-12-17T15:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Uppercase hive DB name</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Uppercase-hive-DB-name/m-p/99822#M12913</link>
      <description>&lt;P&gt;As far as I can tell it is not possible. See this Jira &lt;A href="https://issues.apache.org/jira/browse/HIVE-7689"&gt;https://issues.apache.org/jira/browse/HIVE-7689&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 16:49:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Uppercase-hive-DB-name/m-p/99822#M12913</guid>
      <dc:creator>jstraub</dc:creator>
      <dc:date>2015-12-17T16:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Uppercase hive DB name</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Uppercase-hive-DB-name/m-p/99823#M12914</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/504/kkulkarni.html" nodeid="504"&gt;@Kuldeep Kulkarni&lt;/A&gt;&lt;P&gt;Not possible as of now. I just ran few tests but nothing. &lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 19:45:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Uppercase-hive-DB-name/m-p/99823#M12914</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-12-17T19:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Uppercase hive DB name</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Uppercase-hive-DB-name/m-p/99824#M12915</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2015 17:19:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Uppercase-hive-DB-name/m-p/99824#M12915</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2015-12-18T17:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Uppercase hive DB name</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Uppercase-hive-DB-name/m-p/99825#M12916</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/311/rbalamohan.html" nodeid="311"&gt;@Rajesh Balamohan&lt;/A&gt;
&lt;/P&gt;&lt;P&gt; helped me to find answer of this question.  &lt;/P&gt;&lt;P&gt;As per code it always converts given database name in lowercase format&lt;/P&gt;&lt;P&gt;Answer of this questions is - Database names in hive will always be in lowecase. &lt;/P&gt;&lt;P&gt;&lt;A href="https://svn.apache.org/repos/asf/hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java"&gt;https://svn.apache.org/repos/asf/hive/trunk/metast...&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt; @Override
  public void createDatabase(Database db) throws InvalidObjectException, MetaException {
    boolean commited = false;
    MDatabase mdb = new MDatabase();
    mdb.setName(db.getName().toLowerCase());
    mdb.setLocationUri(db.getLocationUri());
    mdb.setDescription(db.getDescription());
    mdb.setParameters(db.getParameters());
    mdb.setOwnerName(db.getOwnerName());
    PrincipalType ownerType = db.getOwnerType();
    mdb.setOwnerType((null == ownerType ? PrincipalType.USER.name() : ownerType.name()));
    try {
      openTransaction();
      pm.makePersistent(mdb);
      commited = commitTransaction();
    } finally {
      if (!commited) {
        rollbackTransaction();
      }
    }
  }&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Dec 2015 17:22:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Uppercase-hive-DB-name/m-p/99825#M12916</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2015-12-18T17:22:30Z</dc:date>
    </item>
  </channel>
</rss>

