Created
June 24, 2011 19:55
-
-
Save jiminoc/1045541 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void testThatDifferentRPCandHttpPortsAreOK() | |
throws IOException { | |
Configuration conf = new HdfsConfiguration(); | |
FileSystem.setDefaultUri(conf, "hdfs://localhost:8000"); | |
conf.set(DFSConfigKeys.DFS_NAMENODE_HTTP_ADDRESS_KEY, "127.0.0.1:9000"); | |
try { | |
NameNode nameNode = new NameNode(conf); // should be OK! | |
} catch (Exception e) { | |
System.out.println("Got expected exception: " + e.toString()); | |
Assert.fail("Should have throw the exception since the ports match"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment