I have two servers that I need to run with these commands:
cd /home/hadoop/apache-hive-3.1.1-bin/ sudo hiveserver2
sudo /opt/hue/build/env/bin/hue runserver
So I putted both commands in a script.sh (along with other stuff):
$HADOOP_HOME/sbin/start-dfs.sh $HADOOP_HOME/sbin/start-yarn.sh cd /home/hadoop/apache-hive-3.1.1-bin/ hiveserver2 & sudo /opt/hue/build/env/bin/hue runserver &
So when I execute it with
bash script.sh only the four first lines work. The hue server never get urned on.
Why is that ? Is it because the terminal stays reserved for the hiveserver? How can I avoid that please. Thank you
So, I edited as suggested my script:
$HADOOP_HOME/sbin/start-dfs.sh $HADOOP_HOME/sbin/start-yarn.sh sudo gnome-terminal -- bash -c "cd /home/hadoop/apache-hive-3.1.1-bin; hiveserver2 &" sudo /opt/hue/build/env/bin/hue runserver &
and I executed using
bash script.sh. Now hueserver is running but not hiveserver. A second terminal is open but with nothing in it (total black screen).