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

Spark Thrift server creates empty directories in tmp directory on the driver

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 1.6.1
    • None
    • SQL
    • None

    Description

      Each connection to the Spark thrift server (e.g. using beeline) creates two empty directories in the tmp directory on the driver which are never removed:

      cd <tmp directory>
      ls -ltd *_resources | wc -l && /opt/spark/bin/beeline -u jdbc:hive2://dc1-kdp-prod-hadoop-00.prod.dc1.kelkoo.net:10000 -n kookel -e '!quit' && ls -ltd *_resources | wc -l
      9080
      Connecting to jdbc:hive2://dc1-kdp-prod-hadoop-00.prod.dc1.kelkoo.net:10000
      Connected to: Spark SQL (version 1.6.1)
      Driver: Spark Project Core (version 1.6.1)
      Transaction isolation: TRANSACTION_REPEATABLE_READ
      Closing: 0: jdbc:hive2://dc1-kdp-prod-hadoop-00.prod.dc1.kelkoo.net:10000
      Beeline version 1.6.1 by Apache Hive
      9082

      Those directories accumulates over time and are not removed:
      ls -ld *_resources | wc -l
      9064

      And they are indeed empty:
      find *_resources -type f | wc -l
      0

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              preaudc Christophe Préaud
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: