Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-3648

Kylin may not add "kylin.storage.hbase.cluster-hdfs-config-file" to configuration properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • None
    • None
    • Storage - HBase
    • None

    Description

      From this blog,  we know that Configuration.addResource should better use a Path as the input instead of a string:
      conf.addResource(new Path("/home/hadoop/conf/core-site.xml"));
      https://dzone.com/articles/debugging-%E2%80%9Cwrong-fs-expected

       

      But in Kylin's HBaseConnection, it add the hbase cluster fs configure file as string:

      String hdfsConfigFile = KylinConfig.getInstanceFromEnv().getHBaseClusterHDFSConfigFile();
      if (hdfsConfigFile == null || hdfsConfigFile.isEmpty()) {
          return;
      }
      Configuration hdfsConf = new Configuration(false);
      hdfsConf.addResource(hdfsConfigFile);
      

      This may make it doesn't work.

       

      Attachments

        Issue Links

          Activity

            People

              Wayne0101 Chao Long
              shaofengshi Shao Feng Shi
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: