GitHub user ravipesala opened a pull request:
https://github.com/apache/incubator-carbondata/pull/557 [WIP] Set carbon properties location proper You can merge this pull request into a Git repository by running: $ git pull https://github.com/ravipesala/incubator-carbondata yarn_carbon-properties-issue Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-carbondata/pull/557.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #557 ---- ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at [hidden email] or file a JIRA ticket with INFRA. --- |
Github user CarbonDataQA commented on the issue:
https://github.com/apache/incubator-carbondata/pull/557 Build Success with Spark 1.6.2, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder/692/ --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at [hidden email] or file a JIRA ticket with INFRA. --- |
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:
https://github.com/apache/incubator-carbondata/pull/557 Build Success with Spark 1.6.2, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder/695/ --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at [hidden email] or file a JIRA ticket with INFRA. --- |
In reply to this post by qiuchenjian-2
Github user chenliang613 commented on a diff in the pull request:
https://github.com/apache/incubator-carbondata/pull/557#discussion_r97020867 --- Diff: integration/spark2/src/main/scala/org/apache/carbondata/spark/thriftserver/CarbonThriftServer.scala --- @@ -39,14 +42,15 @@ object CarbonThriftServer { val sparkHome = System.getenv.get("SPARK_HOME") if (null != sparkHome) { - builder.config("carbon.properties.filepath", - sparkHome + '/' + "conf" + '/' + "carbon.properties") - System.setProperty("carbon.properties.filepath", - sparkHome + '/' + "conf" + '/' + "carbon.properties") + val file = new File(sparkHome + '/' + "conf" + '/' + "carbon.properties") + if (file.exists()) { + builder.config("carbon.properties.filepath", file.getCanonicalPath) + System.setProperty("carbon.properties.filepath", file.getCanonicalPath) + } } - CarbonProperties.getInstance().addProperty("carbon.storelocation", args.head) + CarbonProperties.getInstance().addProperty(CarbonCommonConstants.STORE_LOCATION, args.head) --- End diff -- CarbonCommonConstants.STORE_LOCATION also get value from carbon.properties.carbon.storelocation, why need do this change ? --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at [hidden email] or file a JIRA ticket with INFRA. --- |
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:
https://github.com/apache/incubator-carbondata/pull/557 Build Success with Spark 1.6.2, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder/712/ --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at [hidden email] or file a JIRA ticket with INFRA. --- |
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:
https://github.com/apache/incubator-carbondata/pull/557 Build Success with Spark 1.6.2, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder/716/ --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at [hidden email] or file a JIRA ticket with INFRA. --- |
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:
https://github.com/apache/incubator-carbondata/pull/557 Build Success with Spark 1.6.2, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder/720/ --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at [hidden email] or file a JIRA ticket with INFRA. --- |
In reply to this post by qiuchenjian-2
Github user ravipesala commented on a diff in the pull request:
https://github.com/apache/incubator-carbondata/pull/557#discussion_r97066116 --- Diff: integration/spark2/src/main/scala/org/apache/carbondata/spark/thriftserver/CarbonThriftServer.scala --- @@ -39,14 +42,15 @@ object CarbonThriftServer { val sparkHome = System.getenv.get("SPARK_HOME") if (null != sparkHome) { - builder.config("carbon.properties.filepath", - sparkHome + '/' + "conf" + '/' + "carbon.properties") - System.setProperty("carbon.properties.filepath", - sparkHome + '/' + "conf" + '/' + "carbon.properties") + val file = new File(sparkHome + '/' + "conf" + '/' + "carbon.properties") + if (file.exists()) { + builder.config("carbon.properties.filepath", file.getCanonicalPath) + System.setProperty("carbon.properties.filepath", file.getCanonicalPath) + } } - CarbonProperties.getInstance().addProperty("carbon.storelocation", args.head) + CarbonProperties.getInstance().addProperty(CarbonCommonConstants.STORE_LOCATION, args.head) --- End diff -- it is just a constant. replaced hardcoded string to constant --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at [hidden email] or file a JIRA ticket with INFRA. --- |
In reply to this post by qiuchenjian-2
Github user gvramana commented on the issue:
https://github.com/apache/incubator-carbondata/pull/557 LGTM --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at [hidden email] or file a JIRA ticket with INFRA. --- |
In reply to this post by qiuchenjian-2
Github user asfgit closed the pull request at:
https://github.com/apache/incubator-carbondata/pull/557 --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at [hidden email] or file a JIRA ticket with INFRA. --- |
Free forum by Nabble | Edit this page |