public URI getDefaultURIScheme( Tap tap ) { return ( (Hfs) tap ).getDefaultFileSystemURIScheme( defaultJobConf ); }
public URI getDefaultURIScheme( Tap tap ) { return ( (Hfs) tap ).getDefaultFileSystemURIScheme( defaultConfiguration ); }
public URI getDefaultURIScheme( Tap tap ) { return ( (Hfs) tap ).getDefaultFileSystemURIScheme( defaultJobConf ); }
public URI getDefaultURIScheme( Tap tap ) { return ( (Hfs) tap ).getDefaultFileSystemURIScheme( defaultConfiguration ); }
protected URI makeURIScheme( Configuration configuration ) { try { URI uriScheme; LOG.debug( "handling path: {}", stringPath ); URI uri = new Path( stringPath ).toUri(); // safer URI parsing String schemeString = uri.getScheme(); String authority = uri.getAuthority(); LOG.debug( "found scheme: {}, authority: {}", schemeString, authority ); if( schemeString != null && authority != null ) uriScheme = new URI( schemeString + "://" + uri.getAuthority() ); else if( schemeString != null ) uriScheme = new URI( schemeString + ":///" ); else uriScheme = getDefaultFileSystemURIScheme( configuration ); LOG.debug( "using uri scheme: {}", uriScheme ); return uriScheme; } catch( URISyntaxException exception ) { throw new TapException( "could not determine scheme from path: " + getPath(), exception ); } }
protected URI makeURIScheme( Configuration configuration ) { try { URI uriScheme; LOG.debug( "handling path: {}", stringPath ); URI uri = new Path( stringPath ).toUri(); // safer URI parsing String schemeString = uri.getScheme(); String authority = uri.getAuthority(); LOG.debug( "found scheme: {}, authority: {}", schemeString, authority ); if( schemeString != null && authority != null ) uriScheme = new URI( schemeString + "://" + uri.getAuthority() ); else if( schemeString != null ) uriScheme = new URI( schemeString + ":///" ); else uriScheme = getDefaultFileSystemURIScheme( configuration ); LOG.debug( "using uri scheme: {}", uriScheme ); return uriScheme; } catch( URISyntaxException exception ) { throw new TapException( "could not determine scheme from path: " + getPath(), exception ); } }