Oracle by Example brandingConfiguring the Memory Settings for the Spark Thrift Server Process

section 0Before You Begin

This 10-minute tutorial shows you how to configure memory settings for the spark thrift server.

This is the 2nd tutorial in the Analyzing and Visualizing Data on Big Data Cloud series. Perform the tutorials sequentially.

What Do You Need?


section 1Configure the Memory Settings for the Spark Thrift Server Process

The default memory settings for the Spark Thrift Server are too small for the Citi Bike data tables. In order to query the size of tables effectively, you need to increase a few memory settings on the Spark Thrift Server. Use Ambari web console to change these settings.

  1. Login to Ambari.
  2. Click Spark2 on the services list and then click the Configs tab.
    Configs
    Description of the illustration a2.jpg
  3. Expand the Custom spark2-thrift-sparkconf section and click the Add Property link.
    Custom spark2-thrift-sparkconf section
    Description of the illustration a3.jpg
  4. In the Add Property page, enter spark.sql.shuffle.partitions=4 in the Properties field and click Add.
    Add Property
    Description of the illustration a4.jpg
  5. Expand the Advanced spark2-env section and change spark_daemon_memory to 4096 MB.
  6. In the content field, edit the line # SPARK_EXECUTOR_MEMORY to SPARK_EXECUTOR_MEMORY="2G"
    Advanced spark2-env
    Description of the illustration a6.jpg
  7. Click Save. In the Notes field, enter memory and click Save.
    Save Configuration
    Description of the illustration a7.jpg
  8. If you see a Configurations pop-up, click Proceed Anyway. Click OK to confirm.
  9. Click Restart and then click Restart All Affected.
    Restart
    Description of the illustration a9.jpg

next stepNext Tutorial

Connecting Oracle Data Visualization Desktop to Big Data Cloud


more informationWant to Learn More?