Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-22374

STS ran into OOM in a secure cluster

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Incomplete
    • 2.2.0
    • None
    • SQL

    Description

      In a secure cluster, FileSystem.CACHE grows indefinitely.

      ENVIRONMENT
      1. `spark.yarn.principal` and `spark.yarn.keytab` is used.
      2. Spark Thrift Server run with `doAs` false.

      <property>
        <name>hive.server2.enable.doAs</name>
        <value>false</value>
      </property>
      

      With 6GB (-Xmx6144m) options, `HiveConf` consumes 4GB inside FileSystem.CACHE.

      20,030 instances of "org.apache.hadoop.hive.conf.HiveConf", loaded by "sun.misc.Launcher$AppClassLoader @ 0x64001c160" occupy 4,418,101,352 (73.42%) bytes. These instances are referenced from one instance of "java.util.HashMap$Node[]", loaded by "<system class loader>"
      

      Please see the attached images.

      Attachments

        1. 1.png
          33 kB
          Dongjoon Hyun
        2. 2.png
          135 kB
          Dongjoon Hyun
        3. 3.png
          210 kB
          Dongjoon Hyun

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dongjoon Dongjoon Hyun
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: