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

Remove the hard-code sample data path in 'sample.sh'

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • v2.0.0
    • v2.1.0
    • Others
    • HDFS Federation
    • Patch

    Description

      Execute sample.sh script failure in hdfs federation environment, because of creating hdfs directory failed. The error log is as following:
      Loading sample data into HDFS tmp path: /tmp/kylin/sample_cube/data
      mkdir: /tmp
      mkdir: InternalDir of ViewFileSystem is readonly; operation=mkdirsPath=/tmp/kylin/sample_cube/data
      put: `/tmp/kylin/sample_cube/data/': No such file or directory

      In my environment, the hdfs directory should be '/nameservice/tmp/kylin', but there is hard coding in sample.sh:
      hadoop ${hadoop_conf_param} fs -mkdir -p /tmp/kylin/sample_cube/data
      hadoop ${hadoop_conf_param} fs -put * /tmp/kylin/sample_cube/data/

      Attachments

        Activity

          People

            peng.jianhua peng.jianhua
            peng.jianhua peng.jianhua
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: