Ejemplo n.º 1
0
        public virtual void TestUpgradeToIdBasedLayout()
        {
            // Upgrade from LDir-based layout to block ID-based layout -- change described
            // in HDFS-6482
            TestDFSUpgradeFromImage upgrade = new TestDFSUpgradeFromImage();

            upgrade.UnpackStorage(Hadoop24Datanode, HadoopDatanodeDirTxt);
            Configuration conf = new Configuration(TestDFSUpgradeFromImage.upgradeConf);

            conf.Set(DFSConfigKeys.DfsDatanodeDataDirKey, Runtime.GetProperty("test.build.data"
                                                                              ) + FilePath.separator + "dfs" + FilePath.separator + "data");
            conf.Set(DFSConfigKeys.DfsNamenodeNameDirKey, Runtime.GetProperty("test.build.data"
                                                                              ) + FilePath.separator + "dfs" + FilePath.separator + "name");
            upgrade.UpgradeAndVerify(new MiniDFSCluster.Builder(conf).NumDataNodes(1).ManageDataDfsDirs
                                         (false).ManageNameDfsDirs(false), null);
        }
Ejemplo n.º 2
0
 /// <exception cref="System.IO.IOException"/>
 private static void UpgradeAndVerify(TestDFSUpgradeFromImage upgrade, Configuration
                                      conf, TestDFSUpgradeFromImage.ClusterVerifier verifier)
 {
     upgrade.UpgradeAndVerify(new MiniDFSCluster.Builder(conf).NumDataNodes(1).ManageDataDfsDirs
                                  (false).ManageNameDfsDirs(false), verifier);
 }