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

    https://github.com/apache/carbondata/pull/2199#discussion_r187832216
  
    --- Diff: integration/presto/Presto_Cluster_Setup_For_Carbondata.md ---
    @@ -0,0 +1,133 @@
    +# Presto Multinode Cluster setup For Carbondata
    +
    +## Installing Presto
    +
    +  1. Download the 0.187 version of Presto using:
    +  `wget 
https://repo1.maven.org/maven2/com/facebook/presto/presto-server/0.187/presto-server-0.187.tar.gz`
    +
    +  2. Extract Presto tar file: `tar zxvf presto-server-0.187.tar.gz`.
    +
    +  3. Download the Presto CLI for the coordinator and name it presto.
    +
    +  ```
    +    wget 
https://repo1.maven.org/maven2/com/facebook/presto/presto-cli/0.187/presto-cli-0.187-executable.jar
    +
    +    mv presto-cli-0.187-executable.jar presto
    +
    +    chmod +x presto
    +  ```
    +
    + ## Create Configuration Files
    +
    +  1. Create `etc` folder in presto-server-0.187 directory.
    +  2. Create `config.properties`, `jvm.config`, `log.properties`, and 
`node.properties` files.
    +  3. Install uuid to generate a node.id.
    +
    +      ```
    +      sudo apt-get install uuid
    +
    +      uuid
    +      ```
    +
    +
    +##### Contents of your node.properties file
    +
    +  ```
    +  node.environment=production
    +  node.id=<generated uuid>
    +  node.data-dir=/home/ubuntu/data
    +  ```
    +
    +##### Contents of your jvm.config file
    +
    +  ```
    +  -server
    +  -Xmx16G
    +  -XX:+UseG1GC
    +  -XX:G1HeapRegionSize=32M
    +  -XX:+UseGCOverheadLimit
    +  -XX:+ExplicitGCInvokesConcurrent
    +  -XX:+HeapDumpOnOutOfMemoryError
    +  -XX:OnOutOfMemoryError=kill -9 %p
    +  ```
    +
    +##### Contents of your log.properties file
    +  ```
    +  com.facebook.presto=INFO
    +  ```
    +
    + The default minimum level is `INFO`. There are four levels: `DEBUG`, 
`INFO`, `WARN` and `ERROR`.
    +
    +## Coordinator Configurations
    +
    +  ##### Contents of your config.properties
    +  ```
    +  coordinator=true
    +  node-scheduler.include-coordinator=false
    +  http-server.http.port=8080
    --- End diff --
    
    Here, the example port, don't suggest using 8080, it is easy to generate 
conflict. 


---

Reply via email to