hostName = getHostName(conf); LOG.info("Configured hostname is {}", hostName); startDataNode(dataDirs, resources); } catch (IOException ie) { shutdown();
/** * Create the DataNode given a configuration and an array of dataDirs. * 'dataDirs' is where the blocks are stored. */ DataNode(Configuration conf, AbstractList<File> dataDirs) throws IOException { super(conf); datanodeObject = this; try { startDataNode(conf, dataDirs); } catch (IOException ie) { shutdown(); throw ie; } }
/** * Start a Datanode with specified server sockets for secure environments * where they are run with privileged ports and injected from a higher * level of capability */ DataNode(final Configuration conf, final AbstractList<File> dataDirs, SecureResources resources) throws IOException { super(conf); SecurityUtil.login(conf, DFSConfigKeys.DFS_DATANODE_KEYTAB_FILE_KEY, DFSConfigKeys.DFS_DATANODE_USER_NAME_KEY); datanodeObject = this; durableSync = conf.getBoolean("dfs.durable.sync", true); this.userWithLocalPathAccess = conf .get(DFSConfigKeys.DFS_BLOCK_LOCAL_PATH_ACCESS_USER_KEY); try { startDataNode(conf, dataDirs, resources); } catch (IOException ie) { shutdown(); throw ie; } }
/** * Create the DataNode given a configuration and an array of dataDirs. * 'dataDirs' is where the blocks are stored. */ DataNode(Configuration conf, AbstractList<File> dataDirs) throws IOException { super(conf); supportAppends = conf.getBoolean("dfs.support.append", false); // TODO(pritam): Integrate this into a threadpool for all operations of the // datanode. blockCopyExecutor = Executors.newCachedThreadPool(); // Time that the blocking version of RPC for copying block between // datanodes should wait for. Default is 5 minutes. blockCopyRPCWaitTime = conf.getInt("dfs.datanode.blkcopy.wait_time", 5 * 60); try { startDataNode(this.getConf(), dataDirs); } catch (IOException ie) { LOG.info("Failed to start datanode " + StringUtils.stringifyException(ie)); shutdown(); throw ie; } }
hostName = getHostName(conf); LOG.info("Configured hostname is " + hostName); startDataNode(conf, dataDirs, resources); } catch (IOException ie) { shutdown();
hostName = getHostName(conf); LOG.info("Configured hostname is " + hostName); startDataNode(conf, dataDirs, resources); } catch (IOException ie) { shutdown();