<?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: How to create Hive table with Azure WASB storage? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-create-Hive-table-with-Azure-WASB-storage/m-p/215420#M177330</link>
    <description>&lt;P&gt;I was able to resolve this by modifying the Azure Blob Properties. To navigate to the Blob Properties:&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Containers &amp;gt; [&lt;EM&gt;container&lt;/EM&gt;] &amp;gt; [&lt;EM&gt;blob&lt;/EM&gt;]&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;In the &lt;STRONG&gt;Metadata &lt;/STRONG&gt;section of Blob Properties, modify the key &lt;STRONG&gt;hdi_permission&lt;/STRONG&gt; "owner" value to the user executing the Hive process.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;For this proof of concept, user "Hive" is executing the Hive CREATE TABLE so I changed the original value from...&lt;/P&gt;&lt;PRE&gt;{"owner":"root","group":"supergroup","permissions":"rw-r--r--"} &lt;/PRE&gt;&lt;P&gt;to...&lt;/P&gt;&lt;PRE&gt;{"owner":"hive","group":"supergroup","permissions":"rw-r--r--"}&lt;/PRE&gt;&lt;P&gt;The &lt;STRONG&gt;hdi_permission &lt;/STRONG&gt;value must be changed for each blob. Since WASB is flat storage, which only emulates a folder hierarchy, that means that each file will need to have the value changed.&lt;/P&gt;</description>
    <pubDate>Sat, 19 May 2018 02:33:13 GMT</pubDate>
    <dc:creator>marcusmattson1</dc:creator>
    <dc:date>2018-05-19T02:33:13Z</dc:date>
    <item>
      <title>How to create Hive table with Azure WASB storage?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-create-Hive-table-with-Azure-WASB-storage/m-p/215418#M177328</link>
      <description>&lt;UL&gt;&lt;LI&gt;HDP 2.6.4.0&lt;/LI&gt;&lt;LI&gt;HDFS 2.7.3 &lt;/LI&gt;&lt;LI&gt;Hive 1.2.1 &lt;/LI&gt;&lt;LI&gt;Ranger 0.7.0 &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I'm testing WASB as a storage option. I've configured the &lt;STRONG&gt;core-site.xml &lt;/STRONG&gt;property. Connectivity works well in these areas: &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Writing files to WASB &lt;/LI&gt;&lt;LI&gt;Using files uploaded to WASB in Zeppelin using livy2 &lt;/LI&gt;&lt;LI&gt;Using files uploaded to WASB using spark-shell&lt;/LI&gt;&lt;LI&gt;'hdfs dfs' file system commands to add/modify/delete/list container items &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I'm using the tweets data from the Twitter tutorial to test using WASB as the source for creating Hive tables. I've tried External and Managed tables. I still get the same error. Following is the most recent version of the table creation code I've used and the error I receive. The error is the same regardless of the table type. &lt;/P&gt;&lt;P&gt;What am I missing? Where should I look to solve this issue?&lt;/P&gt;&lt;PRE&gt;CREATE External TABLE IF NOT EXISTS tweets_text_azure( 
tweet_id bigint, 
created_unixtime bigint, 
created_time string, 
lang string, 
displayname string, 
time_zone string, 
msg string) 
ROW FORMAT SERDE 'org.openx.data.jsonserde.JsonSerDe' 
LOCATION 'wasb://Container@StorageAccount.blob.core.windows.net'; &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;FAILED: HiveAccessControlException Permission denied: user [AmbariUsername] does not have [ALL] privilege on [wasb://Container@StorageAccount.blob.core.windows.net]&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 21:04:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-create-Hive-table-with-Azure-WASB-storage/m-p/215418#M177328</guid>
      <dc:creator>marcusmattson1</dc:creator>
      <dc:date>2018-04-10T21:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Hive table with Azure WASB storage?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-create-Hive-table-with-Azure-WASB-storage/m-p/215419#M177329</link>
      <description>&lt;P&gt;After disabling Ranger, this is the error:&lt;/P&gt;&lt;PRE&gt;java.sql.SQLException:
Error while processing statement: FAILED: Execution Error, return code 1 from
org.apache.hadoop.hive.ql.exec.DDLTask.
MetaException(message:java.security.AccessControlException: Permission denied:
user=hive, path="wasb://Container@StorageAccount.blob.core.windows.net/tweets":&amp;lt;AmbariUsername&amp;gt;:supergroup:drw-r--r--)&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Apr 2018 02:41:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-create-Hive-table-with-Azure-WASB-storage/m-p/215419#M177329</guid>
      <dc:creator>marcusmattson1</dc:creator>
      <dc:date>2018-04-11T02:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Hive table with Azure WASB storage?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-create-Hive-table-with-Azure-WASB-storage/m-p/215420#M177330</link>
      <description>&lt;P&gt;I was able to resolve this by modifying the Azure Blob Properties. To navigate to the Blob Properties:&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Containers &amp;gt; [&lt;EM&gt;container&lt;/EM&gt;] &amp;gt; [&lt;EM&gt;blob&lt;/EM&gt;]&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;In the &lt;STRONG&gt;Metadata &lt;/STRONG&gt;section of Blob Properties, modify the key &lt;STRONG&gt;hdi_permission&lt;/STRONG&gt; "owner" value to the user executing the Hive process.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;For this proof of concept, user "Hive" is executing the Hive CREATE TABLE so I changed the original value from...&lt;/P&gt;&lt;PRE&gt;{"owner":"root","group":"supergroup","permissions":"rw-r--r--"} &lt;/PRE&gt;&lt;P&gt;to...&lt;/P&gt;&lt;PRE&gt;{"owner":"hive","group":"supergroup","permissions":"rw-r--r--"}&lt;/PRE&gt;&lt;P&gt;The &lt;STRONG&gt;hdi_permission &lt;/STRONG&gt;value must be changed for each blob. Since WASB is flat storage, which only emulates a folder hierarchy, that means that each file will need to have the value changed.&lt;/P&gt;</description>
      <pubDate>Sat, 19 May 2018 02:33:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-create-Hive-table-with-Azure-WASB-storage/m-p/215420#M177330</guid>
      <dc:creator>marcusmattson1</dc:creator>
      <dc:date>2018-05-19T02:33:13Z</dc:date>
    </item>
  </channel>
</rss>

