Skip to end of metadata
Go to start of metadata

WSO2 Storage Server ships a pre-configured HDFS file system. In the default configuration, HDFS is disabled and the user has to enable it by disabling the system variable named disable.hdfs.startup in the startup script (wso2server.sh in Linux or wso2server.bat in Windows), which is stored in the <SS_HOME>/bin/ directory.


HDFS Name Node

To start an HDFS name node, open a command prompt (in Windows) or a text Linux console (in Linux) and go to the <SS_HOME>/bin directory and execute the startup script, i.e., wso2server.bat (in Windows) or wso2server.sh (in Linux). 

HDFS Data Node 

Do not format a running Hadoop file system as it will cause all your data to be erased. Before formatting, ensure that the dfs.name.dir directory exists. The name node can be formatted by running the following command from the <SS_HOME>/bin directory.

./hadoop namenode -format

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.

  • No labels