<?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: I recently deployed single node Hadoop cluster using Ambari wizard and then enabled Kerberos. Please give suggestions how can I test with interactive hdfs commands to GET and PUT files in hdfs in this secured cluster? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-recently-deployed-single-node-Hadoop-cluster-using-Ambari/m-p/220737#M69693</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/45324/nhgodwal.html" nodeid="45324"&gt;@Neha G&lt;/A&gt;&lt;P&gt;You can use the basic hdfs commands to achieve this.&lt;/P&gt;&lt;P&gt;hdfs dfs -copyFromLocal &amp;lt;local file system path&amp;gt; &amp;lt;hdfs  path&amp;gt; - to copy files from local to hdfs&lt;/P&gt;&lt;P&gt;hdfs dfs -copyToLocal &amp;lt;hdfs path&amp;gt; &amp;lt;local fs path&amp;gt; - copy from hdfs to local&lt;/P&gt;&lt;P&gt;hdfs dfs -put &amp;lt;local file system path&amp;gt; &amp;lt;hdfs  path&amp;gt; - to copy files from local to hdfs&lt;/P&gt;&lt;P&gt;hdfs dfs -get &amp;lt;hdfs path&amp;gt; &amp;lt;local fs path&amp;gt; - copy from hdfs to local&lt;/P&gt;&lt;P&gt;hdfs dfs -ls &amp;lt;path&amp;gt; - list the files.&lt;/P&gt;&lt;P&gt;Check this link for more commands. &lt;/P&gt;&lt;P&gt;&lt;A href="https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/FileSystemShell.html" target="_blank"&gt;https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/FileSystemShell.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Make sure to run kinit with hdfs keytab before running the above commands as it is a secure enviroment&lt;/P&gt;&lt;P&gt;( kinit -kt /etc/security/keytabs/hdfs.headless.keytab &amp;lt;principal&amp;gt;) &lt;/P&gt;&lt;P&gt;If you don't know the value of principal , you can run the below command and get it&lt;/P&gt;&lt;PRE&gt;[root@xxxxx ~]# klist -kte /etc/security/keytabs/hdfs.headless.keytab
Keytab name: FILE:/etc/security/keytabs/hdfs.headless.keytab
KVNO Timestamp         Principal
---- ----------------- --------------------------------------------------------
   1 09/10/17 14:06:14 hdfs@EXAMPLE.COM (aes128-cts-hmac-sha1-96)
   1 09/10/17 14:06:14 hdfs@EXAMPLE.COM (arcfour-hmac)
   1 09/10/17 14:06:14 hdfs@EXAMPLE.COM (des-cbc-md5)
   1 09/10/17 14:06:14 hdfs@EXAMPLE.COM (des3-cbc-sha1)
   1 09/10/17 14:06:14 hdfs@EXAMPLE.COM (aes256-cts-hmac-sha1-96)&lt;/PRE&gt;&lt;P&gt;In the above output hdfs@EXAMPLE.COM is the principal, so your kinit command would be&lt;/P&gt;&lt;P&gt;kinit -kt /etc/security/keytabs/hdfs.headless.keytab hdfs@EXAMPLE.COM&lt;/P&gt;&lt;P&gt;Note : You can also use ambari files view to do these operations. GUI would be easy.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
    <pubDate>Mon, 16 Oct 2017 12:04:50 GMT</pubDate>
    <dc:creator>asirna</dc:creator>
    <dc:date>2017-10-16T12:04:50Z</dc:date>
    <item>
      <title>I recently deployed single node Hadoop cluster using Ambari wizard and then enabled Kerberos. Please give suggestions how can I test with interactive hdfs commands to GET and PUT files in hdfs in this secured cluster?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-recently-deployed-single-node-Hadoop-cluster-using-Ambari/m-p/220736#M69692</link>
      <description>&lt;P&gt;I am specifically looking for what commands on terminal I should run to create file in hdfs and get files in hdfs.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 11:43:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-recently-deployed-single-node-Hadoop-cluster-using-Ambari/m-p/220736#M69692</guid>
      <dc:creator>nhgodwal</dc:creator>
      <dc:date>2017-10-16T11:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: I recently deployed single node Hadoop cluster using Ambari wizard and then enabled Kerberos. Please give suggestions how can I test with interactive hdfs commands to GET and PUT files in hdfs in this secured cluster?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-recently-deployed-single-node-Hadoop-cluster-using-Ambari/m-p/220737#M69693</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/45324/nhgodwal.html" nodeid="45324"&gt;@Neha G&lt;/A&gt;&lt;P&gt;You can use the basic hdfs commands to achieve this.&lt;/P&gt;&lt;P&gt;hdfs dfs -copyFromLocal &amp;lt;local file system path&amp;gt; &amp;lt;hdfs  path&amp;gt; - to copy files from local to hdfs&lt;/P&gt;&lt;P&gt;hdfs dfs -copyToLocal &amp;lt;hdfs path&amp;gt; &amp;lt;local fs path&amp;gt; - copy from hdfs to local&lt;/P&gt;&lt;P&gt;hdfs dfs -put &amp;lt;local file system path&amp;gt; &amp;lt;hdfs  path&amp;gt; - to copy files from local to hdfs&lt;/P&gt;&lt;P&gt;hdfs dfs -get &amp;lt;hdfs path&amp;gt; &amp;lt;local fs path&amp;gt; - copy from hdfs to local&lt;/P&gt;&lt;P&gt;hdfs dfs -ls &amp;lt;path&amp;gt; - list the files.&lt;/P&gt;&lt;P&gt;Check this link for more commands. &lt;/P&gt;&lt;P&gt;&lt;A href="https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/FileSystemShell.html" target="_blank"&gt;https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/FileSystemShell.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Make sure to run kinit with hdfs keytab before running the above commands as it is a secure enviroment&lt;/P&gt;&lt;P&gt;( kinit -kt /etc/security/keytabs/hdfs.headless.keytab &amp;lt;principal&amp;gt;) &lt;/P&gt;&lt;P&gt;If you don't know the value of principal , you can run the below command and get it&lt;/P&gt;&lt;PRE&gt;[root@xxxxx ~]# klist -kte /etc/security/keytabs/hdfs.headless.keytab
Keytab name: FILE:/etc/security/keytabs/hdfs.headless.keytab
KVNO Timestamp         Principal
---- ----------------- --------------------------------------------------------
   1 09/10/17 14:06:14 hdfs@EXAMPLE.COM (aes128-cts-hmac-sha1-96)
   1 09/10/17 14:06:14 hdfs@EXAMPLE.COM (arcfour-hmac)
   1 09/10/17 14:06:14 hdfs@EXAMPLE.COM (des-cbc-md5)
   1 09/10/17 14:06:14 hdfs@EXAMPLE.COM (des3-cbc-sha1)
   1 09/10/17 14:06:14 hdfs@EXAMPLE.COM (aes256-cts-hmac-sha1-96)&lt;/PRE&gt;&lt;P&gt;In the above output hdfs@EXAMPLE.COM is the principal, so your kinit command would be&lt;/P&gt;&lt;P&gt;kinit -kt /etc/security/keytabs/hdfs.headless.keytab hdfs@EXAMPLE.COM&lt;/P&gt;&lt;P&gt;Note : You can also use ambari files view to do these operations. GUI would be easy.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 12:04:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-recently-deployed-single-node-Hadoop-cluster-using-Ambari/m-p/220737#M69693</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2017-10-16T12:04:50Z</dc:date>
    </item>
  </channel>
</rss>

