Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How to add new port to sandbox HDP 2.6.5 ?

Highlighted

How to add new port to sandbox HDP 2.6.5 ?

Expert Contributor

Hi,

I am using sandbox HDP 2.6.5 in virtualbox.

I have configured Kylin 2.6.0. Kylin started successfully but i am not able to open Kylin Web UI. So i need to add Port 7070 to sandbox and for that i am following this article which is for HDP 2.5.

As defined in the article to add port i have to edit start_sandbox.sh file under /root/start_scripts directory. But there is no directory named start_scripts under /root.

I am facing same issue for HDP 3.0.

So, how can i add new port in HDP 2.6.5/3.0 ?


Thanks,

Heta

6 REPLIES 6

Re: How to add new port to sandbox HDP 2.6.5 ?

Super Mentor

@heta desai

Are you sure that you are doing SSH on port 2122 (Not on 2222)?

Example:

# ssh root@localhost  -p 2122
root@localhost's password: hadoop
System is booting up. See pam_nologin(8)
Last login: Sat Feb  9 07:37:21 2019

[root@sandbox-host ~]# ls -lart /root/start_scripts/start_sandbox.sh
-rwxr-xr-x 1 root root 2259 Apr 19  2017 /root/start_scripts/start_sandbox.sh

.
Notice: the SSH port i used as 2122 to login to the VM which starts the docker container.

When you do SSH on port 2222 then you actually login inside the docker container (not on the VM). The hadoop components and ambari are installed inside the docker container.


Re: How to add new port to sandbox HDP 2.6.5 ?

Expert Contributor

@Jay Kumar SenSharma

When i try to ssh on port 2122 it shows connection refused.

107202-hdp265.jpg


1552564724269.png

Re: How to add new port to sandbox HDP 2.6.5 ?

Super Mentor

@heta desai

You are already on the sandbox thats why you can not do ssh to port 2122.

Please do this.

1. Open a terminal on your Laptop. In the screenshot we see that youa re doing SSH inside the sandbox window which will not work.


2. Now do SSH on port 2122 (not on 2222) from your laptop terminal to sandbox VM

Example: Notice my prompt I am not inside the sandbox when i am running ssh on port 2122 ... i am doing it from my laptop terminal

macpro:~ jaysensharma$ ssh root@localhost  -p 2122
root@localhost's password: hadoop

.

Re: How to add new port to sandbox HDP 2.6.5 ?

Expert Contributor

@Jay Kumar SenSharma

I am doing ssh to root@#localhost 2122 using putty. but still i am not able to do that.

107222-ssh2122-putty.jpg107153-ssh2122-login.jpg

Re: How to add new port to sandbox HDP 2.6.5 ?

Super Mentor

@heta desai
In the above screenshot you are doing "# ls /" . Please check this path now.

# ls  /

# ls -lart /root/start_scripts/start_sandbox.sh

.

Also can you check if you see the docker container is running there? as following?

# ps -ef | grep docker


.

Re: How to add new port to sandbox HDP 2.6.5 ?

Expert Contributor

I thin docker is running.

107165-docker.jpg


But there is no directory named start_scripts under /root didrectory.


107203-ls-lart.jpg