Support Questions

Find answers, ask questions, and share your expertise

I am deploying an app on HDP sandbox 2.4. I need to display some details about the app on home screen after VM is loaded. Screen shot is attached where i need to make changes. Please let me know how to make changes

avatar
New Contributor

87510-hdp-sandbox-startup-screen.jpg

1 ACCEPTED SOLUTION

avatar
Master Mentor

@Mahesh Chaudhary

Correction the above instruction was for HDF Sandbox.

So if you want to achieve the same in HDP Sandbox then please try this:

For HDP Sandbox please try this:

# ssh root@127.0.0.1 -p 2122
root@127.0.0.1's password: hadoop


Edit the script "/root/start_scripts/splash.py"

Example: Like changed the following line in "/root/start_scripts/splash.py"

    if flavor == "hdp":
        greet_win.addstr(1, 2, "HDP 2.5")


To something like

    if flavor == "hdp":
        greet_win.addstr(1, 2, "HDP 2.5 (###### Test Application ######) ")


Save the file and then Restarted HDP Sandbox.

87514-sandbox-edited-splashscreen.png

.

View solution in original post

7 REPLIES 7

avatar

Hi @Mahesh Chaudhary,

i think these is the document you are searching for : https://hortonworks.com/tutorial/learning-the-ropes-of-the-hortonworks-sandbox/#terminal-access

You can explore more on this help guide : https://hortonworks.com/tutorial/learning-the-ropes-of-the-hortonworks-sandbox

Please accept the answer if this helped

avatar
Master Mentor

@Mahesh Chaudhary

For HDF Sandbox please try this:

If you want to customize the welcome screen then try something like this:

 # ssh root@127.0.0.1 -p 2122
root@127.0.0.1's password: hadoop

Then edit the file "/sandbox/terminal-splash.py"
For example change the line

 greet_win.addstr(1, 2, "Hortonworks Sandbox")


With something like

 greet_win.addstr(1, 2, "Hortonworks Sandbox ########## TEST APP ##########")<br>

Then restart your Sandbox.

avatar
Master Mentor

@Mahesh Chaudhary

Correction the above instruction was for HDF Sandbox.

So if you want to achieve the same in HDP Sandbox then please try this:

For HDP Sandbox please try this:

# ssh root@127.0.0.1 -p 2122
root@127.0.0.1's password: hadoop


Edit the script "/root/start_scripts/splash.py"

Example: Like changed the following line in "/root/start_scripts/splash.py"

    if flavor == "hdp":
        greet_win.addstr(1, 2, "HDP 2.5")


To something like

    if flavor == "hdp":
        greet_win.addstr(1, 2, "HDP 2.5 (###### Test Application ######) ")


Save the file and then Restarted HDP Sandbox.

87514-sandbox-edited-splashscreen.png

.

avatar
New Contributor

Hi @Jay Kumar SenSharma

I can't find splash.py file in HDP 2.4, please let me know the workaround for this version.

avatar
Master Mentor

@Mahesh Chaudhary

Are you using Correct SSH port to connect to the HDP VM (2122)?

# ssh root@127.0.0.1 -p 2122
root@127.0.0.1's password: hadoop
.
.
#### In order to find a file, please try using the "locate" command.
# yum install mlocate -y
# updatedb
# locate splash.py

.

avatar
New Contributor

Hi @Jay Kumar SenSharma

Perfect. Thanks a lot , I was able to find the script using locate command.

avatar
Master Mentor
@Mahesh Chaudhary

Wonderful !!! Good to know that you have found the script. It will be great if you can click on the "Accept" button on the correct answer here to mark this threads as answered, that way other HCC users can quickly find and browse the answer quickly.