Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-6842

Uncomment or remove code in HadoopFileSystem

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Implemented
    • 1.4.0
    • 1.4.0
    • Runtime / Task
    • None

    Description

      I've found the following code in HadoopFileSystem#getHadoopWrapperClassNameForFileSystem

      Configuration hadoopConf = getHadoopConfiguration();
      Class<? extends org.apache.hadoop.fs.FileSystem> clazz;
      // We can activate this block once we drop Hadoop1 support (only hd2 has the getFileSystemClass-method)
      //try {
      //	clazz = org.apache.hadoop.fs.FileSystem.getFileSystemClass(scheme, hadoopConf);
      //} catch (IOException e) {
      //	LOG.info("Flink could not load the Hadoop File system implementation for scheme "+scheme);
      //	return null;
      //}
      clazz = hadoopConf.getClass("fs." + scheme + ".impl", null, org.apache.hadoop.fs.FileSystem.class);
      
      if (clazz != null && LOG.isDebugEnabled()) {
      	LOG.debug("Flink supports {} with the Hadoop file system wrapper, impl {}", scheme, clazz);
      }
      return clazz;
      

      Since we don't support hadoop1 anymore the commented code should either be activated or removed.

      Attachments

        Issue Links

          Activity

            People

              mingleizhang zhangminglei
              chesnay Chesnay Schepler
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: