Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on
05-15-2024
05:34 AM
- last edited on
04-20-2026
11:30 PM
by
GrazittiAPI
Dear Friends
The concerned Cloudera Services are:
Spark 3 , Livy for Spark 3, Hue
After I have added Spark SQL interpreter in Hue I am struggling to get more than 1000 rows results once querying the DB. Do you know what parameter should be used to change the default quantity. I Already tried to use :
spark.livy.sql.max-result
CM --> Livy for Spark3 --> Search for "Livy for Spark 3 Client Advanced Configuration Snippet (Safety Valve) for livy3-conf/livy-client.conf" and add the above parameter with value.
spark.livy.sql.max-result=2000
However after restarting the concerns services - nothing has changed. Hereunder you can see what is all about:
I would like to change this limitation to e.g. 5000. But not sure on what mentioned services this should be adjusted on.
I really appreciate your help in this.
Thank you
Created 05-15-2024 11:53 PM
Hi @Bartlomiej
You can use livy.rsc.sql.num-rows parameter to adjust the number of rows wants to display.
CM --> Livy for Spark3 --> Search for "Livy Server for Spark 3 Advanced Configuration Snippet (Safety Valve) for livy3-conf/livy.conf" and add the above parameter with value.
livy.rsc.sql.num-rows=5000
I have created a test_3000 table by inserting 1 to 2999 records. While running the query from Hue Spark3 editor you can see the following output:
Created 05-15-2024 07:57 AM
@Bartlomiej, Welcome to our community! To help you get the best possible answer, I have tagged our Spark experts @RangaReddy @Babasaheb @ggangadharan who may be able to assist you further.
Please feel free to provide any additional information or details about your query, and we hope that you will find a satisfactory solution to your question.
Regards,
Vidya Sargur,Created 05-15-2024 11:53 PM
Hi @Bartlomiej
You can use livy.rsc.sql.num-rows parameter to adjust the number of rows wants to display.
CM --> Livy for Spark3 --> Search for "Livy Server for Spark 3 Advanced Configuration Snippet (Safety Valve) for livy3-conf/livy.conf" and add the above parameter with value.
livy.rsc.sql.num-rows=5000
I have created a test_3000 table by inserting 1 to 2999 records. While running the query from Hue Spark3 editor you can see the following output:
Created 05-16-2024 02:59 AM
Yes, this is it.
Thank you so much for the prompt response.