This documentation is for WSO2 Storage Server 1.0.3. View documentation for the latest release.
Changing the Default HDFS Configuration - Storage Server 1.0.3 - WSO2 Documentation
||
Skip to end of metadata
Go to start of metadata

WSO2 Storage Server ships preconfigured HDFS file system. In the default configuration HDFS is disabled and user has to enable it by disabling the system variable named disable.hdfs.startup in $CARBON_HOME/bin/wso2server.sh

-Ddisable.hdfs.startup="false"

 

HDFS Name Node

1. To start HDFS name node, open a command prompt (in Windows) or a text Linux console (in Linux) in $SS_HOME/bin directory and execute wso2server.bat (in Windows) or wso2server.sh (in Linux). 

2. To disable HDFS name node at the Storage Server start-up, change the property value of "disable.hdfs.namenode" to "false" in the wso2server.bat (in Windows) or wso2server.sh (in Linux). 

-Ddisable.hdfs.namenode.startup=false

3. To introduce a star-tup delay to name node: 

bin/wso2server.sh -Dhdfs.namenode.startup.delay=400000
HDFS Data Node 

1. To start the HDFS data node, change the directory to $SS_HOME  

HADOOP_SECURE_DN_USER=<user> sudo -E bin/hadoop datanode
 
The user should have sudo privileges.
 
2. To format HDFS name nodecache the file system related user ticket:

$kinit hdfs/node0

Next, change the directory to $SS_HOME and execute:

bin/hadoop name node -format
  • No labels