Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spark-sql query doesn't show the sparkmonitor progressbar #21

Open
geosmart opened this issue Oct 19, 2022 · 0 comments
Open

spark-sql query doesn't show the sparkmonitor progressbar #21

geosmart opened this issue Oct 19, 2022 · 0 comments

Comments

@geosmart
Copy link

geosmart commented Oct 19, 2022

it work fine with spark session simple demo
1

but if I test the hive query in jupyter lab with sparkmonitor extention enabled.
the

from pyspark.sql import SparkSession
app_name="pyspark-hive-demo"

spark = SparkSession.builder.appName(app_name).enableHiveSupport()

spark = spark.config('spark.extraListeners', 'sparkmonitor.listener.JupyterSparkMonitorListener')
spark = spark.config('spark.driver.extraClassPath', '/usr/local/lib/python3.6/dist-packages/sparkmonitor/listener_2.12.jar')
spark = spark.getOrCreate()

df=spark.sql("select title,source_id,source_url  from db.tb where pt_d='2022-10-18' limit 10")
df.show(10)

why just print the result ,has no spark monitor process bar

+----------------------------------------+---------+----------+
| title|source_id|source_url|
+----------------------------------------+---------+----------+
| xxxxx xxxx
+----------------------------------------+---------+----------+

@geosmart geosmart changed the title sql query doesn't show the sparkmonitor progressbar spark-sql query doesn't show the sparkmonitor progressbar Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant