Spark Session - Get Spark Session
Hämtar en enda Spark-session.
GET {endpoint}/livyApi/versions/{livyApiVersion}/sparkPools/{sparkPoolName}/sessions/{sessionId}
			GET {endpoint}/livyApi/versions/{livyApiVersion}/sparkPools/{sparkPoolName}/sessions/{sessionId}?detailed={detailed}
			URI-parametrar
| Name | I | Obligatorisk | Typ | Description | 
|---|---|---|---|---|
| 
						 endpoint 
					 | 
					path | True | 
			 string  | 
					
						 Slutpunkten för arbetsytans utveckling, till exempel   | 
				
| 
						 livy 
					 | 
					path | True | 
			 string  | 
					
						 Giltig API-version för begäran.  | 
				
| 
						 session 
					 | 
					path | True | 
			 integer (int32)  | 
					
						 Identifierare för sessionen.  | 
				
| 
						 spark 
					 | 
					path | True | 
			 string  | 
					
						 Namnet på spark-poolen.  | 
				
| 
						 detailed 
					 | 
					query | 
			 boolean  | 
					
						 Valfri frågeparam som anger om ett detaljerat svar returneras bortom oformaterad livy.  | 
				
Svar
| Name | Typ | Description | 
|---|---|---|
| 200 OK | 
		 Framgång  | 
Exempel
Gets a single spark session.
Exempelbegäran
GET myWorkspace.dev.azuresynapse.net/livyApi/versions/2020-12-01/sparkPools/mySparkPool/sessions/123?detailed=True
Exempelsvar
{
  "livyInfo": null,
  "name": "jobname",
  "workspaceName": "myWorkspace",
  "sparkPoolName": "mySparkPool",
  "submitterName": "thetime",
  "submitterId": "thesubmitterid",
  "artifactId": "fill in here",
  "jobType": "SparkSession",
  "result": "Failed",
  "schedulerInfo": null,
  "pluginInfo": null,
  "errorInfo": [],
  "tags": null,
  "id": 1,
  "appId": "fill in here",
  "appInfo": null,
  "state": "the state",
  "log": []
}
				Definitioner
| Name | Description | 
|---|---|
| 
							Livy | 
						
							 Batchtillståndet  | 
					
| 
							Plugin | 
						|
| 
							Scheduler | 
						|
| 
							Spark | 
						|
| 
							Spark | 
						
							 Jobbtypen.  | 
					
| 
							Spark | 
						|
| 
							Spark | 
						|
| 
							Spark | 
						|
| 
							Spark | 
						|
| 
							Spark | 
						|
| 
							Spark | 
						|
| 
							Spark | 
						
LivyStates 
			
			Batchtillståndet
| Värde | Description | 
|---|---|
| not_started | |
| starting | |
| idle | |
| busy | |
| shutting_down | |
| error | |
| dead | |
| killed | |
| success | |
| running | |
| recovering | 
PluginCurrentState  
			
			
				| Värde | Description | 
|---|---|
| Preparation | |
| ResourceAcquisition | |
| Queued | |
| Submission | |
| Monitoring | |
| Cleanup | |
| Ended | 
SchedulerCurrentState  
			
			
				| Värde | Description | 
|---|---|
| Queued | |
| Scheduled | |
| Ended | 
SparkErrorSource  
			
			
				| Värde | Description | 
|---|---|
| System | |
| User | |
| Unknown | |
| Dependency | 
SparkJobType  
			
			Jobbtypen.
| Värde | Description | 
|---|---|
| SparkBatch | |
| SparkSession | 
SparkRequest 
			
			
				| Name | Typ | Description | 
|---|---|---|
| archives | 
			 string[]  | 
	|
| args | 
			 string[]  | 
	|
| className | 
			 string  | 
	|
| conf | 
			 object  | 
	|
| driverCores | 
			 integer (int32)  | 
	|
| driverMemory | 
			 string  | 
	|
| executorCores | 
			 integer (int32)  | 
	|
| executorMemory | 
			 string  | 
	|
| file | 
			 string  | 
	|
| files | 
			 string[]  | 
	|
| jars | 
			 string[]  | 
	|
| name | 
			 string  | 
	|
| numExecutors | 
			 integer (int32)  | 
	|
| pyFiles | 
			 string[]  | 
	
SparkScheduler 
			
			
				| Name | Typ | Description | 
|---|---|---|
| cancellationRequestedAt | 
			 string (date-time)  | 
	|
| currentState | ||
| endedAt | 
			 string (date-time)  | 
	|
| scheduledAt | 
			 string (date-time)  | 
	|
| submittedAt | 
			 string (date-time)  | 
	
SparkServiceError  
			
			
				| Name | Typ | Description | 
|---|---|---|
| errorCode | 
			 string  | 
	|
| message | 
			 string  | 
	|
| source | 
SparkServicePlugin  
			
			
				| Name | Typ | Description | 
|---|---|---|
| cleanupStartedAt | 
			 string (date-time)  | 
	|
| currentState | ||
| monitoringStartedAt | 
			 string (date-time)  | 
	|
| preparationStartedAt | 
			 string (date-time)  | 
	|
| resourceAcquisitionStartedAt | 
			 string (date-time)  | 
	|
| submissionStartedAt | 
			 string (date-time)  | 
	
SparkSession 
			
			
				| Name | Typ | Description | 
|---|---|---|
| appId | 
			 string  | 
	|
| appInfo | 
			 object  | 
	|
| artifactId | 
			 string  | 
	|
| errorInfo | ||
| id | 
			 integer (int32)  | 
	|
| jobType | ||
| livyInfo | ||
| log | 
			 string[]  | 
	|
| name | 
			 string  | 
	|
| pluginInfo | ||
| result | ||
| schedulerInfo | ||
| sparkPoolName | 
			 string  | 
	|
| state | 
		 Sessionstillståndet.  | 
|
| submitterId | 
			 string  | 
	|
| submitterName | 
			 string  | 
	|
| tags | 
			 object  | 
	|
| workspaceName | 
			 string  | 
	
SparkSessionResultType   
			
			
				| Värde | Description | 
|---|---|
| Uncertain | |
| Succeeded | |
| Failed | |
| Cancelled | 
SparkSessionState  
			
			
				| Name | Typ | Description | 
|---|---|---|
| busyAt | 
			 string (date-time)  | 
	|
| currentState | 
			 string  | 
	|
| deadAt | 
			 string (date-time)  | 
	|
| errorAt | 
			 string (date-time)  | 
	|
| idleAt | 
			 string (date-time)  | 
	|
| jobCreationRequest | ||
| killedAt | 
			 string (date-time)  | 
	|
| notStartedAt | 
			 string (date-time)  | 
	|
| recoveringAt | 
			 string (date-time)  | 
	|
| shuttingDownAt | 
			 string (date-time)  | 
	|
| startingAt | 
			 string (date-time)  |