<?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 Unable To Upload A Table In Hive : java.sql.SQLException Error in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Unable-To-Upload-A-Table-In-Hive-java-sql-SQLException-Error/m-p/185230#M147337</link>
    <description>&lt;P&gt;&lt;IMG src="https://community.cloudera.com/legacyfs/online/attachments/45781-3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14200/asirna.html" nodeid="14200"&gt;@Aditya Sirna&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I was trying to upload a database table in &lt;STRONG&gt;Hive View&lt;/STRONG&gt;. But after choose the file and make the relevant settings, and then when I hit the &lt;STRONG&gt;UPLOAD TABLE Option&lt;/STRONG&gt;, I get the following error :&lt;/P&gt;&lt;PRE&gt;java.sql.SQLException:Errorwhile processing statement: FAILED:ExecutionError,return code 1fromorg.apache.hadoop.hive.ql.exec.DDLTask.MetaException(message:java.security.AccessControlException:Permission denied:user=hive, path="file:/":root:root:drwxr-xr-x)&lt;/PRE&gt;&lt;P&gt;I was denied permission to upload the table. I am using the account of maria_dev which is there by default in Ambari UI.&lt;/P&gt;&lt;P&gt;I tried changing the permission and try again by using the following command :&lt;/P&gt;&lt;PRE&gt;hdfs dfs -chmod 777/&lt;/PRE&gt;&lt;P&gt;On running this command in hortonworks sandbox terminal, I got the following error :&lt;/P&gt;&lt;PRE&gt;Exception in thread "main" java.lang.RuntimeException: core-site.xml not found                                                                       
        at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2640)                                                                
        at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2566)                                                               
        at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2451)                                                                    
        at org.apache.hadoop.conf.Configuration.set(Configuration.java:1164)                                                                         
        at org.apache.hadoop.conf.Configuration.set(Configuration.java:1136)                                                                         
        at org.apache.hadoop.conf.Configuration.setBoolean(Configuration.java:1472)                                                                  
        at org.apache.hadoop.util.GenericOptionsParser.processGeneralOptions(GenericOptionsParser.java:321)                                          
        at org.apache.hadoop.util.GenericOptionsParser.parseGeneralOptions(GenericOptionsParser.java:487)                                            
        at org.apache.hadoop.util.GenericOptionsParser.&amp;lt;init&amp;gt;(GenericOptionsParser.java:170)                                                         
        at org.apache.hadoop.util.GenericOptionsParser.&amp;lt;init&amp;gt;(GenericOptionsParser.java:153)                                                         
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)                                                                                 
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90)                                                                                 
        at org.apache.hadoop.fs.FsShell.main(FsShell.java:356) 
&lt;/PRE&gt;&lt;P&gt;I used to get a similar error earlier too. &lt;/P&gt;&lt;P&gt;I was uploading the table from my laptop's desktop, i.e. Local File System. I didn't use any Hive Query to upload the table. In the Hive View of Ambari UI, there is an option of "UPLOAD TABLE". I clicked on that option, then I set the Field Delimiter as Tab delimited and then clicked on "Upload Table". After this, I got the error that I mentioned.&lt;/P&gt;&lt;P&gt;Can somebody help me to sort out this error ?&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.cloudera.com/legacyfs/online/attachments/45783-5.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.cloudera.com/legacyfs/online/attachments/45783-5.png" /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jan 2018 22:31:44 GMT</pubDate>
    <dc:creator>amoghsuman</dc:creator>
    <dc:date>2018-01-09T22:31:44Z</dc:date>
  </channel>
</rss>

