You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "ABHISHEK KUMAR GUPTA (Jira)" <ji...@apache.org> on 2019/12/02 06:56:00 UTC

[jira] [Created] (SPARK-30096) drop function does not delete the jars file from tmp folder- session is not getting clear

ABHISHEK KUMAR GUPTA created SPARK-30096:
--------------------------------------------

             Summary: drop function does not delete the jars file from tmp folder- session is not getting clear
                 Key: SPARK-30096
                 URL: https://issues.apache.org/jira/browse/SPARK-30096
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 3.0.0
            Reporter: ABHISHEK KUMAR GUPTA


Steps:
1.spark-master --master yarn
2. spark-sql> create function addDoubles  AS 'com.huawei.bigdata.hive.example.udf.AddDoublesUDF'  using jar 'hdfs://hacluster/user/user1/AddDoublesUDF.jar';
3. spark-sql> select addDoubles (1,2);

In the console log user can see
Added [/tmp/23090937-7314-43d8-a859-b35f42d37bdf_resources/AddDoublesUDF.jar] to class path
19/12/02 13:49:33 INFO SessionState: Added [/tmp/23090937-7314-43d8-a859-b35f42d37bdf_resources/AddDoublesUDF.jar] to class path

4. spark-sql>drop function AddDoubles;
Check the tmp folder still session is not clear

vm1:/tmp/23090937-7314-43d8-a859-b35f42d37bdf_resources # ll
total 11696
-rw-r--r-- 1 root root    92660 Dec  2 13:49 .AddDoublesUDF.jar.crc
-rwxr-xr-x 1 root root 11859263 Dec  2 13:49 AddDoublesUDF.jar
vm1:/tmp/23090937-7314-43d8-a859-b35f42d37bdf_resources #





--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org