File: start.sh

package info (click to toggle)
dask 1.0.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 6,856 kB
  • sloc: python: 51,266; sh: 178; makefile: 142
file content (17 lines) | stat: -rw-r--r-- 334 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

# Start HDFS
sudo service hadoop-hdfs-namenode start
sudo service hadoop-hdfs-datanode start

echo "HDFS Started"

if [[ $1 == "-d" ]]; then
    # Running as a daemon, indicate to host that hdfs is started
    touch /working/hdfs-initialized-indicator
    sleep infinity
fi

if [[ $1 == "-bash" ]]; then
    /bin/bash
fi