<?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: Cannot run hadoop commands in HDP Sandbox in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-run-hadoop-commands-in-HDP-Sandbox/m-p/187349#M61807</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/18359/mohammadsadeghtorabi.html" nodeid="18359"&gt;@Sadegh&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Sandbox runs on docker container. So some profile configs are loaded only when you do "ssh on port 2222" &lt;/P&gt;&lt;P&gt;This is the way port forwarding works is that it exposes port 22 of the sandbox machine to the outside network of your PC via port 2222. &lt;/P&gt;&lt;PRE&gt;# ssh root@127.0.0.1  -p 2222&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Or&lt;/STRONG&gt; using putty on port 2222 ssh port.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;But alternatively you can also try using the WebTerminal  to run the commands like:&lt;/P&gt;&lt;P&gt;&lt;A href="http://localhost:4200/" target="_blank"&gt;http://localhost:4200/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
    <pubDate>Fri, 26 May 2017 14:15:08 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2017-05-26T14:15:08Z</dc:date>
    <item>
      <title>Cannot run hadoop commands in HDP Sandbox</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-run-hadoop-commands-in-HDP-Sandbox/m-p/187348#M61806</link>
      <description>&lt;P&gt;Hi, My questions is somehow similar to &lt;A href="https://community.hortonworks.com/questions/92124/cant-run-hadoop-commands-on-hortonwork-sandbox.html" target="_blank"&gt;this one&lt;/A&gt;, but it is still not clear for me. So I ask it again:&lt;/P&gt;&lt;P&gt;I am running HDP Sandbox on VMware in Win 10. I can successfully connect to sandbox using SSH and port 2222 and run hadoop commands. However, on virtual machine itself where sandbox image is loaded, I cannot run and hadoop commands. So everytime I want to run hadoop commands, do I need to use SSH command and putty?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:39:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-run-hadoop-commands-in-HDP-Sandbox/m-p/187348#M61806</guid>
      <dc:creator>mohammadsadegh_</dc:creator>
      <dc:date>2022-09-16T11:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot run hadoop commands in HDP Sandbox</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-run-hadoop-commands-in-HDP-Sandbox/m-p/187349#M61807</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/18359/mohammadsadeghtorabi.html" nodeid="18359"&gt;@Sadegh&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Sandbox runs on docker container. So some profile configs are loaded only when you do "ssh on port 2222" &lt;/P&gt;&lt;P&gt;This is the way port forwarding works is that it exposes port 22 of the sandbox machine to the outside network of your PC via port 2222. &lt;/P&gt;&lt;PRE&gt;# ssh root@127.0.0.1  -p 2222&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Or&lt;/STRONG&gt; using putty on port 2222 ssh port.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;But alternatively you can also try using the WebTerminal  to run the commands like:&lt;/P&gt;&lt;P&gt;&lt;A href="http://localhost:4200/" target="_blank"&gt;http://localhost:4200/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 14:15:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-run-hadoop-commands-in-HDP-Sandbox/m-p/187349#M61807</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-05-26T14:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot run hadoop commands in HDP Sandbox</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-run-hadoop-commands-in-HDP-Sandbox/m-p/187350#M61808</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/18359/mohammadsadeghtorabi.html" nodeid="18359"&gt;@Sadegh&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You have installed the sandbox on windows 10 machine. Its not like that you have installed Hadoop onto your system. thats why whenever you want execute hadoop commands you will need to SSH from putty itself and then you can execute the hadoop command into that shell.&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 14:15:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-run-hadoop-commands-in-HDP-Sandbox/m-p/187350#M61808</guid>
      <dc:creator>nshelke</dc:creator>
      <dc:date>2017-05-26T14:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot run hadoop commands in HDP Sandbox</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-run-hadoop-commands-in-HDP-Sandbox/m-p/187351#M61809</link>
      <description>&lt;P&gt;Are you able to run hadoop commands in your sandbox?&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 14:19:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-run-hadoop-commands-in-HDP-Sandbox/m-p/187351#M61809</guid>
      <dc:creator>mohammadsadegh_</dc:creator>
      <dc:date>2017-05-26T14:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot run hadoop commands in HDP Sandbox</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-run-hadoop-commands-in-HDP-Sandbox/m-p/187352#M61810</link>
      <description>&lt;P&gt;Yes I know. However it seems logical that hadoop commands should run on virtual machine itself because I am using ssh to connect with it. isn't it?&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 14:20:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-run-hadoop-commands-in-HDP-Sandbox/m-p/187352#M61810</guid>
      <dc:creator>mohammadsadegh_</dc:creator>
      <dc:date>2017-05-26T14:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot run hadoop commands in HDP Sandbox</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-run-hadoop-commands-in-HDP-Sandbox/m-p/187353#M61811</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/18359/mohammadsadeghtorabi.html" nodeid="18359"&gt;@Sadegh
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Yes, After doing ssh on the designed and documented port 2222 i am able to do so.&lt;/P&gt;&lt;PRE&gt;HW11189:ambari jsensharma$ ssh root@127.0.0.1 -p 2222
Last login: Fri May 26 07:27:30 2017 from 10.0.2.2
[root@sandbox ~]# hdfs
Usage: hdfs [--config confdir] [--loglevel loglevel] COMMAND
       where COMMAND is one of:
  dfs                  run a filesystem command on the file systems supported in Hadoop.
  classpath            prints the classpath
  namenode -format     format the DFS filesystem
&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Port 2222  is must to be used. &lt;/P&gt;&lt;P&gt;&lt;A href="https://hortonworks.com/hadoop-tutorial/learning-the-ropes-of-the-hortonworks-sandbox/"&gt;https://hortonworks.com/hadoop-tutorial/learning-the-ropes-of-the-hortonworks-sandbox/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/18359/mohammadsadeghtorabi.html" nodeid="18359"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 14:29:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-run-hadoop-commands-in-HDP-Sandbox/m-p/187353#M61811</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-05-26T14:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot run hadoop commands in HDP Sandbox</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-run-hadoop-commands-in-HDP-Sandbox/m-p/187354#M61812</link>
      <description>&lt;P&gt;FYI ... you can learn more basic tips of working with the HDP Sandbox with this tutorial:&lt;/P&gt;&lt;P&gt;&lt;A href="https://hortonworks.com/hadoop-tutorial/learning-the-ropes-of-the-hortonworks-sandbox/" target="_blank"&gt;https://hortonworks.com/hadoop-tutorial/learning-the-ropes-of-the-hortonworks-sandbox/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2017 02:26:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-run-hadoop-commands-in-HDP-Sandbox/m-p/187354#M61812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-05-27T02:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot run hadoop commands in HDP Sandbox</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-run-hadoop-commands-in-HDP-Sandbox/m-p/187355#M61813</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/18359/mohammadsadeghtorabi.html" nodeid="18359"&gt;@Sadegh&lt;/A&gt;, even you can try to SSH as localhost Ex:  ssh root@localhost -p 2222&lt;/P&gt;</description>
      <pubDate>Sun, 28 May 2017 10:37:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-run-hadoop-commands-in-HDP-Sandbox/m-p/187355#M61813</guid>
      <dc:creator>SatishS</dc:creator>
      <dc:date>2017-05-28T10:37:46Z</dc:date>
    </item>
  </channel>
</rss>

