Support Questions

Find answers, ask questions, and share your expertise

Running hadoop in background

avatar
Contributor

Hello guys

I am running hadoop cluster using HDP , when i run hadoop there are two CLI of the datanode and the namenode , please is there is any possibilty to run them in background ?

Thank you a lot !

3 REPLIES 3

avatar
Master Mentor

@Maher Hattabi

I am not very clear about waht do you mean by two CLI here. Can you please let us know how are you starting those components?

Are you starting those components using the following commands?

nohup hadoop-daemon.sh start namenode &
nohup hadoop-daemon.sh start datanode &

- You can run then in background or use Ambari to manage the start & stop.

Are you following the below mentioned doc:

https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.3/bk_reference/content/starting_hdp_services....

avatar
Master Mentor

@Maher Hattabi

In Windiws there is "START" command that can be used to work similar to "&" in unix. Did you try that?

Try to use the "/B" switch, like this:

C:\> start /B start-dfs.cmd

.

Or else you may try to run refer to the approach mentioned in the following link:

http://www.winhelponline.com/blog/run-bat-files-invisibly-without-displaying-command-prompt/

avatar
Contributor

Hi ,same problem here i want to make these inerface hidden and running in background thanks

12459-capture.png