You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by chenliang613 <gi...@git.apache.org> on 2016/12/11 03:07:54 UTC

[GitHub] incubator-carbondata pull request #416: [CARBONDATA-518]Fix the bug of Carbo...

Github user chenliang613 commented on a diff in the pull request:

    https://github.com/apache/incubator-carbondata/pull/416#discussion_r91846766
  
    --- Diff: examples/spark/src/main/scala/org/apache/carbondata/examples/CarbonExample.scala ---
    @@ -26,11 +28,15 @@ object CarbonExample {
       def main(args: Array[String]) {
         val cc = ExampleUtils.createCarbonContext("CarbonExample")
         val testData = ExampleUtils.currentPath + "/src/main/resources/data.csv"
    -
    +    val rootPath = new File(this.getClass.getResource("/").getPath
    --- End diff --
    
    These parameters have been defined in ExampleUtils.scala as below,  and also already been added into CarbonProperties during creation CarbonContext.
    
    def currentPath: String = new File(this.getClass.getResource("/").getPath + "../../")
          .getCanonicalPath
      val storeLocation = currentPath + "/target/store"


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---