cancel
Showing results for 
Search instead for 
Did you mean: 
Community Platform Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results for 
Search instead for 
Did you mean: 

REST API

VMeghraj
New Contributor II

Creating an application to capture cluster metrics and sending HTTP REST request to the Spark History Server's API endpoint to retrieve a list of applications. This request doesn't generate logs in the Spark History Server's log files. The Spark History Server logs primarily capture information related to the Spark applications it serves and its own internal operation, not external API requests.

Ref : https://spark.apache.org/docs/latest/monitoring.html#rest-api

1) Sample REST request using command.
curl http://<hostname>:18080/api/v1/applications/

2) We should get the expected JSON response.

3) Check the History server logs /opt/mapr/spark/spark-2.4.8/logs/spark-mapr-org.apache.spark.deploy.history.HistoryServer*.out and we do NOT see any logging statements for the request #1.

Where does the REST api requests get's logged ?

1 REPLY 1

Do you have any examples how it can be logged on client side ? Enabling verbose logging on curl request dosen't help much.

e.g) curl -v http://<hostname>:18080/api/v1/applications/

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group