def fully_qualify_hdfs_path(path):
 if is_uri(path):
  return path
 elif path.startswith('/'):
  return ('hdfs://' + path)
 else:
  return ('hdfs:///user/%s/%s' % (getpass.getuser(), path))

def fully_qualify_hdfs_path ( path ) : if is_uri ( path ) : return path elif path . startswith ( '/' ) : return ( 'hdfs://' + path ) else : return ( 'hdfs:///user/%s/%s' % ( getpass . getuser ( ) , path ) )
if path isnt an hdfs:// url .