| Configuring for Object Storage and HDFS / Configuring the Transfer Server for Hadoop Distributed File System (HDFS) | |
IBM Aspera Enterprise Server can be configured to transfer to and from HDFS storage. Settings must be changed in both the HDFS and Enterprise Server configuration files, as described below.
<property>
<name>fs.defaultFS</name>
<value>hdfs://hadoop-node.aspera.us:8020</value>
</property>
Keep the file open for the next step.
<property>
<name>hadoop.proxyuser.hdfs.groups</name>
<value>*</value>
</property>
<property>
<name>hadoop.proxyuser.hdfs.hosts</name>
<value>host</value>
</property>
Save and close the file.
# stop hadoop-hdfs-namenode # start hadoop-hdfs-namenode
# asconfigurator -x "set_user_data;user_name,username;absolute,hdfs://username@name_node_address:IPC_port/path_to_folder"
Where username is that of an Enterprise Server transfer user. You can use any transfer user on the Enterprise Server because the HDFS URI indicates which user is connecting to HDFS.
For example, if the HDFS user is xfer, the NameNode address is hadoop-node.aspera.us, and the IPC port is 8020, then the command is the following:
# asconfigurator -x "set_user_data;user_name,xfer;absolute,hdfs://xfer@hadoop-node.aspera.us:8020/user/xfer"
#aspera.hdfs.superuser.name = hdfs
The HDFS super user specified in hdfs.properties must match the name of the actual user who runs the NameNode service on the NameNode node. If the user running the NameNode service is not hdfs, uncomment the line and enter the correct super username. Save and close the file.
# /etc/init.d/asperatrapd restart