/** * Constructs a new <code>LocalFileSystem</code> object. */ public LocalFileSystem() { this.workingDir = new Path(System.getProperty("user.dir")).makeQualified(this); String tmp = "unknownHost"; try { tmp = InetAddress.getLocalHost().getHostName(); } catch (UnknownHostException e) { LOG.error(e); } this.hostName = tmp; }
/** * Constructs a new <code>LocalFileSystem</code> object. */ public LocalFileSystem() { this.workingDir = new Path(System.getProperty("user.dir")).makeQualified(this); String tmp = "unknownHost"; try { tmp = InetAddress.getLocalHost().getHostName(); } catch (UnknownHostException e) { LOG.error(e); } this.hostName = tmp; }