[GitHub] carbondata pull request #2861: [HOTFIX]handle passing spark appname for part...

classic Classic list List threaded Threaded
33 messages Options
12
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata pull request #2861: [HOTFIX]handle passing spark appname for part...

qiuchenjian-2
GitHub user akashrn5 opened a pull request:

    https://github.com/apache/carbondata/pull/2861

    [HOTFIX]handle passing spark appname for partition table and file format

    Dataload with partion table file format fails, as the appname is not in carbonproperties in executor.
    This PR sets the spark appname in carbon properties which will be written to carbondata footer.
   
    Be sure to do all of the following checklist to help us incorporate
    your contribution quickly and easily:
   
     - [ ] Any interfaces changed?
     
     - [ ] Any backward compatibility impacted?
     
     - [ ] Document update required?
   
     - [ ] Testing done
            Please provide details on
            - Whether new unit test cases have been added or why no new tests are required?
            - How it is tested? Please attach test report.
            - Is it a performance related change? Please attach the performance test report.
            - Any additional information to help reviewers in testing this change.
           
     - [ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.
   


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/akashrn5/incubator-carbondata written

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/carbondata/pull/2861.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 #2861
   
----
commit 92a97277a96453e321a120eec2e1dc0b6d327c17
Author: akashrn5 <akashnilugal@...>
Date:   2018-10-26T14:04:04Z

    handle passing spark appname for partition table and file format

----


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2861: [HOTFIX]handle passing spark appname for partition t...

qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2861
 
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder2.1/1053/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2861: [HOTFIX]handle passing spark appname for partition t...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2861
 
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder2.1/1056/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2861: [HOTFIX]handle passing spark appname for partition t...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2861
 
    Build Failed  with Spark 2.3.1, Please check CI http://136.243.101.176:8080/job/carbondataprbuilder2.3/9322/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2861: [HOTFIX]handle passing spark appname for partition t...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2861
 
    Build Failed with Spark 2.2.1, Please check CI http://95.216.28.178:8080/job/ApacheCarbonPRBuilder1/1270/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2861: [HOTFIX]handle passing spark appname for partition t...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2861
 
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder2.1/1062/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2861: [HOTFIX]handle passing spark appname for partition t...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2861
 
    Build Failed with Spark 2.2.1, Please check CI http://95.216.28.178:8080/job/ApacheCarbonPRBuilder1/1276/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2861: [HOTFIX]handle passing spark appname for partition t...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2861
 
    Build Failed  with Spark 2.3.1, Please check CI http://136.243.101.176:8080/job/carbondataprbuilder2.3/9328/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2861: [HOTFIX]handle passing spark appname for partition t...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user akashrn5 commented on the issue:

    https://github.com/apache/carbondata/pull/2861
 
    retest this please


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2861: [HOTFIX]handle passing spark appname for partition t...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2861
 
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder2.1/1078/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2861: [HOTFIX]handle passing spark appname for partition t...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2861
 
    Build Failed  with Spark 2.3.1, Please check CI http://136.243.101.176:8080/job/carbondataprbuilder2.3/9343/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2861: [HOTFIX]handle passing spark appname for partition t...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2861
 
    Build Failed with Spark 2.2.1, Please check CI http://95.216.28.178:8080/job/ApacheCarbonPRBuilder1/1291/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2861: [HOTFIX]handle passing spark appname for partition t...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2861
 
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder2.1/1087/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2861: [HOTFIX]handle passing spark appname for partition t...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2861
 
    Build Failed  with Spark 2.3.1, Please check CI http://136.243.101.176:8080/job/carbondataprbuilder2.3/9351/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2861: [HOTFIX]handle passing spark appname for partition t...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2861
 
    Build Failed with Spark 2.2.1, Please check CI http://95.216.28.178:8080/job/ApacheCarbonPRBuilder1/1299/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2861: [HOTFIX]handle passing spark appname for partition t...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2861
 
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder2.1/1101/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2861: [HOTFIX]handle passing spark appname for partition t...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2861
 
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder2.1/1104/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2861: [HOTFIX]handle passing spark appname for partition t...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2861
 
    Build Success with Spark 2.2.1, Please check CI http://95.216.28.178:8080/job/ApacheCarbonPRBuilder1/1315/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2861: [HOTFIX]handle passing spark appname for partition t...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2861
 
    Build Success with Spark 2.3.1, Please check CI http://136.243.101.176:8080/job/carbondataprbuilder2.3/9367/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata pull request #2861: [CARBONDATA-3025]handle passing spark appname...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user xuchuanyin commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/2861#discussion_r229147458
 
    --- Diff: integration/spark2/src/main/scala/org/apache/spark/sql/execution/datasources/SparkCarbonTableFormat.scala ---
    @@ -175,6 +174,12 @@ with Serializable {
               dataSchema: StructType,
               context: TaskAttemptContext): OutputWriter = {
             val model = CarbonTableOutputFormat.getLoadModel(context.getConfiguration)
    +        val appName = context.getConfiguration.get(CarbonCommonConstants.CARBON_WRITTEN_BY_APPNAME)
    +        if (null != appName) {
    +          CarbonProperties.getInstance()
    +            .addProperty(CarbonCommonConstants.CARBON_WRITTEN_BY_APPNAME,
    +              appName)
    --- End diff --
   
    optimize the indent


---
12