Get-AzHDInsightJob
Mendapatkan daftar pekerjaan dari kluster dan mencantumkannya dalam urutan kronologis terbalik, atau mengambil pekerjaan tertentu.
Sintaks
Get-AzHDInsightJob
[-ClusterName] <String>
[-HttpCredential] <PSCredential>
[[-JobId] <String>]
[-NumOfJobs <Int32>]
[-ResourceGroupName <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Deskripsi
Cmdlet Get-AzHDInsightJob mendapatkan pekerjaan terbaru untuk kluster Azure HDInsight tertentu dalam urutan kronologis terbalik, dengan pekerjaan terbaru di bagian atas daftar. Dapatkan pekerjaan tertentu dengan menyediakan parameter JobId .
Contoh
Contoh 1: Mendapatkan pekerjaan terbaru untuk kluster Azure HDInsight tertentu
# Cluster info
$clusterName = "your-hadoop-001"
$clusterCreds = Get-Credential
# Hive job details
$statusFolder = "tempStatusFolder/"
$query = "SHOW TABLES"
New-AzHDInsightHiveJobDefinition -StatusFolder $statusFolder `
-Query $query `
| Start-AzHDInsightJob -ClusterName $clusterName `
-ClusterCredential $clusterCreds `
| Get-AzHDInsightJob -ClusterName $clusterName `
-ClusterCredential $clusterCreds
Perintah ini mendapatkan semua pekerjaan terbaru untuk kluster bernama your-hadoop-001.
Parameter
Menentukan nama kluster.
| Type: | String |
| Position: | 0 |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Kredensial, akun, penyewa, dan langganan yang digunakan untuk komunikasi dengan azure
| Type: | IAzureContextContainer |
| Aliases: | AzContext, AzureRmContext, AzureCredential |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Menentukan kredensial masuk kluster (HTTP) untuk kluster.
| Type: | PSCredential |
| Aliases: | ClusterCredential |
| Position: | 1 |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Menentukan ID pekerjaan dari pekerjaan yang akan didapatkan.
| Type: | String |
| Position: | 2 |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Menentukan jumlah pekerjaan yang akan diambil.
| Type: | Int32 |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Menentukan nama grup sumber daya.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Input
None
Output
Link Terkait
Saran dan Komentar
Kirim dan lihat umpan balik untuk