Package org.apache.hadoop.hdfs.server.namenode.AvatarNode

Examples of org.apache.hadoop.hdfs.server.namenode.AvatarNode.StartupInfo


        imageShd0, imageShd1,
        editsShd0, editsShd1);
   
    // update configuration for nodezero
    newconf = new Configuration();
    StartupInfo startInfoZero = new StartupInfo(null, InstanceId.NODEZERO,
        false, "service", false);
    updateConf(startInfoZero, newconf);

    // check configuration
    assertEqualsCol(getList(imageLcl, imageShd0),
        NNStorageConfiguration.getNamespaceDirs(newconf, null));
    assertEqualsCol(getList(editsLcl, editsShd0),
        NNStorageConfiguration.getNamespaceEditsDirs(newconf, null));

    // check shared directory
    checkKey(imageShd0, "dfs.name.dir.shared", newconf);
    checkKey(editsShd0, "dfs.name.edits.dir.shared", newconf);

    // update configuration for nodeone
    newconf = new Configuration();
    StartupInfo startInfoOne = new StartupInfo(null, InstanceId.NODEONE, true,
        "service", false);
    updateConf(startInfoOne, newconf);

    // check configuration
    assertEqualsCol(getList(imageLcl, imageShd1),
View Full Code Here


        imageShd0, imageShd1,
        editsShd0, editsShd1);
   
    // update configuration for nodezero
    newconf = new Configuration();
    StartupInfo startInfoZero = new StartupInfo(null, InstanceId.NODEZERO,
        false, "service", false);
    updateConf(startInfoZero, newconf);
   
    // validate
    Map<URI, NNStorageLocation> map = ValidateNamespaceDirPolicy.validate(newconf);
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hdfs.server.namenode.AvatarNode.StartupInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.