Class HDFSSession


  • public class HDFSSession
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      HDFSSession​(java.lang.String nameNode, java.lang.String user)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void createFile​(org.apache.hadoop.fs.Path path, java.io.InputStream input)  
      void deleteFile​(org.apache.hadoop.fs.Path path)  
      java.util.Map<java.lang.String,​java.lang.String> getRepositoryInfo()  
      java.net.URI getUri()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HDFSSession

        public HDFSSession​(java.lang.String nameNode,
                           java.lang.String user)
                    throws java.net.URISyntaxException,
                           java.io.IOException,
                           java.lang.InterruptedException
        Throws:
        java.net.URISyntaxException
        java.io.IOException
        java.lang.InterruptedException
    • Method Detail

      • getRepositoryInfo

        public java.util.Map<java.lang.String,​java.lang.String> getRepositoryInfo()
      • deleteFile

        public void deleteFile​(org.apache.hadoop.fs.Path path)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • createFile

        public void createFile​(org.apache.hadoop.fs.Path path,
                               java.io.InputStream input)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • getUri

        public java.net.URI getUri()
      • close

        public void close()
                   throws java.io.IOException
        Throws:
        java.io.IOException