title: Why I'm getting "Permission denied " error HADOOP? And Why I'm unbale to import .csv file?
body: <p>I have this table called 'emp' in hbase.</p>
  <pre><code>hbase(main):006:0&gt; create 'emp', 'personel data'
  0 row(s) in 1.3110 seconds
  </code></pre>
  <p>I've inserted 2 rows in it via put command.</p>
  <pre><code>hbase(main):020:0&gt; scan 'emp'
  ROW                                                    COLUMN+CELL                                                                                                                                                  
   1                                                     column=personel data:name, age, gender, timestamp=1641624361341, value=Pratik, 24, Male                                                                      
   2                                                     column=personel data:name, age, gender, timestamp=1641624514176, value=Emma, 21, Female                                                                      
  2 row(s) in 0.0320 seconds
  </code></pre>
  <p>But, now I want to add data from the csv file.</p>
  <pre><code>[cloudera@quickstart ~]$ cat sample_kpi.csv
  sam,24,m
  emma,21,f
  richard,23,m
  susane,22,f
  </code></pre>
  <p>You can see my current working directory is: <code>/home/cloudera</code> and in that I've <code>sample_kpi.csv</code>. Hence, path=<code>/home/cloudera/sample_kpi.csv</code></p>
  <pre><code>[cloudera@quickstart ~]$ pwd
  /home/cloudera
  [cloudera@quickstart ~]$ ls
  avro              data1         Documents  emp.java                    external_jars     kerberos   Music          part_dir  rakeshdata      sample_kpi.txt  Videos
  cloudera-manager  Desktop       Downloads  enterprise-deployment.json  external-unified  kpifolder  parcels        Pictures  rakeshdata1     sparkjars_exec  workspace
  cm_api.py         devices.json  eclipse    express-deployment.json     input.txt         lib        parquet_write  Public    sample_kpi.csv  Templates       zeyo_tab.java
  </code></pre>
  <p>So, I've written this command for importing data and ran it a few times but it shows error.</p>
  <pre><code>hbase(main):015:0&gt; $ hbase org.apache.hadoop.hbase.mapreduce.ImportTsv -Dimporttsv.separator=',' -Dimporttsv.columns=HBASE_ROW_KEY, personal_data:name, personal_data:age, personal_data:gender emp /home/cloudera/sample_kpi.csv
  SyntaxError: (hbase):15: syntax error, unexpected null
  
  $ hbase org.apache.hadoop.hbase.mapreduce.ImportTsv -Dimporttsv.separator=',' -Dimporttsv.columns=HBASE_ROW_KEY, personal_data:name, personal_data:age, personal_data:gender emp /home/cloudera/sample_kpi.csv
  ^
  
  hbase(main):016:0&gt; hbase org.apache.hadoop.hbase.mapreduce.ImportTsv -Dimporttsv.separator=',' -Dimporttsv.columns=HBASE_ROW_KEY, personal_data:name, personal_data:age, personal_data:gender emp /home/cloudera/sample_kpi.csv
  SyntaxError: (hbase):16: syntax error, unexpected tSYMBEG
  
  hbase org.apache.hadoop.hbase.mapreduce.ImportTsv -Dimporttsv.separator=',' -Dimporttsv.columns=HBASE_ROW_KEY, personal_data:name, personal_data:age, personal_data:gender emp /home/cloudera/sample_kpi.csv
                                                                                                                              ^
  
  hbase(main):017:0&gt; hbase org.apache.hadoop.hbase.mapreduce.ImportTsv -Dimporttsv.separator=',' -Dimporttsv.columns=HBASE_ROW_KEY, personal_data:name, personal_data:age, personal_data:gender emp /home/cloudera/sample_kpi.csv
  SyntaxError: (hbase):17: syntax error, unexpected tSYMBEG
  
  hbase org.apache.hadoop.hbase.mapreduce.ImportTsv -Dimporttsv.separator=',' -Dimporttsv.columns=HBASE_ROW_KEY, personal_data:name, personal_data:age, personal_data:gender emp /home/cloudera/sample_kpi.csv
                                                
  </code></pre>
  <p>And also, I thought this must be occuring coz I haven't imported the sample_kpi.csv file to hbase. So tried importing it but I got this <code>&quot;Permission denied&quot;</code> error:</p>
  <pre><code>[cloudera@quickstart ~]$ hadoop dfs -put /home/cloudera/sample_kpi.csv /hbase
  DEPRECATED: Use of this script to execute hdfs command is deprecated.
  Instead use the hdfs command for it.
  
  put: Permission denied: user=cloudera, access=WRITE, inode=&quot;/hbase&quot;:hbase:supergroup:drwxr-xr-x
  [cloudera@quickstart ~]$ hdfs dfs -put /home/cloudera/sample_kpi.csv /hbase
  put: Permission denied: user=cloudera, access=WRITE, inode=&quot;/hbase&quot;:hbase:supergroup:drwxr-xr-x
  </code></pre>
  <p>And sometimes it says: <code>No such file or directory</code></p>
  <pre><code>[cloudera@quickstart ~]$ hdfs dfs -put /home/cloudera/sample_kpi.csv /etc/hbase
  put: `/etc/hbase': No such file or directory
  [cloudera@quickstart ~]$ hadoop dfs -put /home/cloudera/sample_kpi.csv /hbase
  DEPRECATED: Use of this script to execute hdfs command is deprecated.
  Instead use the hdfs command for it.
  </code></pre>
  <p>Can somebody tell me what exactly the error is?
  And &quot;WHY&quot; is it happening?!
  Thank you so much!</p>