public static void main(String[] args) throws InterruptedException, RemoteException, UnknownHostException, NotBoundException {
		
		
		try {
			Parser.dataNodeConf();
			if (Hdfs.Core.DEBUG) {
				Parser.printConf(new ConfOpt[] {ConfOpt.HDFSCORE, ConfOpt.DATANODE});
			}
		} catch (Exception e) {
			e.printStackTrace();
			
			System.err.println("The DataNode rountine cannot read configuration info.\n"
					+ "Please confirm the hdfs.xml is placed as ./conf/hdfs.xml.\n"
					+ "The DataNode routine is shutting down...");
			
			System.exit(1);
		}
		
		if (args.length != 0) {
			Hdfs.Core.DEBUG = true;
		}
		
		DataNode dataNode = new DataNode(Hdfs.Core.NAME_NODE_IP,
				Hdfs.Core.NAME_NODE_REGISTRY_PORT, 
				Hdfs.DataNode.DATA_NODE_REGISTRY_PORT,
				Hdfs.DataNode.DATA_NODE_SERVER_PORT);
		try {
			dataNode.init();
		} catch (Exception e) {
			e.printStackTrace();
		}
		Thread t1 = new Thread(dataNode);
		t1.start();
		
	}