Skip to content

Commit

Permalink
daemon/start-hadoop: add start-hadoop
Browse files Browse the repository at this point in the history
start-hadoop is for start hadoop's component.

Signed-off-by: Wei Jihui <[email protected]>
  • Loading branch information
WJiHui committed Jun 17, 2021
1 parent 7e8125d commit e6a620c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions daemon/start-hadoop
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh

: "${hadoop_home:=/usr/hadoop}"

main()
{
source /etc/profile > /dev/null

# The first time you bring up HDFS, it must be formatted.
# Format a new distributed filesystem as hdfs:
$hadoop_home/bin/hdfs namenode -format

$hadoop_home/sbin/start-dfs.sh
}
main

0 comments on commit e6a620c

Please sign in to comment.