Example usage for org.apache.hadoop.hdfs DFSConfigKeys DFS_DATANODE_USER_NAME_KEY

List of usage examples for org.apache.hadoop.hdfs DFSConfigKeys DFS_DATANODE_USER_NAME_KEY

Introduction

In this page you can find the example usage for org.apache.hadoop.hdfs DFSConfigKeys DFS_DATANODE_USER_NAME_KEY.

Prototype

String DFS_DATANODE_USER_NAME_KEY

To view the source code for org.apache.hadoop.hdfs DFSConfigKeys DFS_DATANODE_USER_NAME_KEY.

Click Source Link

Usage

From source file:com.facebook.presto.hive.HiveClientConfig.java

License:Apache License

@Config(DFSConfigKeys.DFS_DATANODE_USER_NAME_KEY)
public void setDfsDatanodeKerberosPrincipal(String dfsDatanodeKerberosPrincipal) {
    this.dfsDatanodeKerberosPrincipal = dfsDatanodeKerberosPrincipal;
}

From source file:common.DataNode.java

License:Apache License

/**
 * Create the DataNode given a configuration, an array of dataDirs,
 * and a namenode proxy/* w  w w  . j  a  v  a  2s .c  o m*/
 */
DataNode(final Configuration conf, final AbstractList<File> dataDirs, final DatanodeProtocol namenode)
        throws IOException {
    super(conf);

    UserGroupInformation.setConfiguration(conf);
    DFSUtil.login(conf, DFSConfigKeys.DFS_DATANODE_KEYTAB_FILE_KEY, DFSConfigKeys.DFS_DATANODE_USER_NAME_KEY);

    DataNode.setDataNode(this);

    try {
        startDataNode(conf, dataDirs, namenode);
    } catch (IOException ie) {
        shutdown();
        throw ie;
    }
}