-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5ff77e9
commit ad9ff10
Showing
4 changed files
with
273 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
167 changes: 167 additions & 0 deletions
167
pkg/fleet/installer/setup/djm/testdata/emrDescribeClusterResponse.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,167 @@ | ||
{ | ||
"Cluster": { | ||
"Id": "j-456", | ||
"Name": "TestCluster", | ||
"Status": { | ||
"State": "WAITING", | ||
"StateChangeReason": { | ||
"Message": "Cluster ready to run steps." | ||
}, | ||
"Timeline": { | ||
"CreationDateTime": "2024-12-19T12:33:52.519000+00:00", | ||
"ReadyDateTime": "2024-12-19T12:39:40.738000+00:00" | ||
} | ||
}, | ||
"Ec2InstanceAttributes": { | ||
"Ec2KeyName": "name-key", | ||
"Ec2SubnetId": "subnet-123", | ||
"RequestedEc2SubnetIds": [ | ||
"subnet-a75bb2c3" | ||
], | ||
"Ec2AvailabilityZone": "us-east-1a", | ||
"RequestedEc2AvailabilityZones": [], | ||
"IamInstanceProfile": "IamInstanceProfile", | ||
"EmrManagedMasterSecurityGroup": "sg-EmrManagedMasterSecurityGroup", | ||
"EmrManagedSlaveSecurityGroup": "sg-EmrManagedSlaveSecurityGroup", | ||
"AdditionalMasterSecurityGroups": [ | ||
"sg-0348948a9f025a14e", | ||
"sg-0cca41352bd4bf322" | ||
], | ||
"AdditionalSlaveSecurityGroups": [ | ||
"sg-1", | ||
"sg-2" | ||
] | ||
}, | ||
"InstanceCollectionType": "INSTANCE_GROUP", | ||
"LogUri": "s3n://bucket/emr_logs/", | ||
"ReleaseLabel": "emr-7.2.0", | ||
"AutoTerminate": false, | ||
"TerminationProtected": false, | ||
"UnhealthyNodeReplacement": true, | ||
"VisibleToAllUsers": true, | ||
"Applications": [ | ||
{ | ||
"Name": "Hadoop", | ||
"Version": "3.3.6" | ||
}, | ||
{ | ||
"Name": "Hive", | ||
"Version": "3.1.3" | ||
}, | ||
{ | ||
"Name": "JupyterEnterpriseGateway", | ||
"Version": "2.6.0" | ||
}, | ||
{ | ||
"Name": "Livy", | ||
"Version": "0.8.0" | ||
}, | ||
{ | ||
"Name": "Spark", | ||
"Version": "3.5.1" | ||
} | ||
], | ||
"Tags": [ | ||
{ | ||
"Key": "emr_env", | ||
"Value": "sandbox" | ||
} | ||
], | ||
"ServiceRole": "arn:aws:iam::123456:role/EMR_DefaultRole", | ||
"NormalizedInstanceHours": 16, | ||
"NormalizedInstanceHours": 16, | ||
"MasterPublicDnsName": "ec2-1-2-3-4.compute-1.amazonaws.com", | ||
"Configurations": [], | ||
"ScaleDownBehavior": "TERMINATE_AT_TASK_COMPLETION", | ||
"KerberosAttributes": {}, | ||
"ClusterArn": "arn:aws:elasticmapreduce:us-east-1:601427279990:cluster/j-456", | ||
"StepConcurrencyLevel": 2, | ||
"PlacementGroups": [], | ||
"OSReleaseLabel": "2023.6.20241121.0", | ||
"BootstrapActions": [], | ||
"InstanceGroups": [ | ||
{ | ||
"Id": "ig-123", | ||
"Name": "Primary", | ||
"Market": "ON_DEMAND", | ||
"InstanceGroupType": "MASTER", | ||
"InstanceType": "m4.xlarge", | ||
"RequestedInstanceCount": 1, | ||
"RunningInstanceCount": 1, | ||
"Status": { | ||
"State": "RUNNING", | ||
"StateChangeReason": { | ||
"Message": "" | ||
}, | ||
"Timeline": { | ||
"CreationDateTime": "2024-12-19T12:33:52.539000+00:00", | ||
"ReadyDateTime": "2024-12-19T12:39:11.301000+00:00" | ||
} | ||
}, | ||
"Configurations": [], | ||
"ConfigurationsVersion": 0, | ||
"LastSuccessfullyAppliedConfigurations": [], | ||
"LastSuccessfullyAppliedConfigurationsVersion": 0, | ||
"EbsBlockDevices": [ | ||
{ | ||
"VolumeSpecification": { | ||
"VolumeType": "gp2", | ||
"SizeInGB": 32 | ||
}, | ||
"Device": "/dev/sdb" | ||
}, | ||
{ | ||
"VolumeSpecification": { | ||
"VolumeType": "gp2", | ||
"SizeInGB": 32 | ||
}, | ||
"Device": "/dev/sdc" | ||
} | ||
], | ||
"EbsOptimized": true, | ||
"ShrinkPolicy": {} | ||
}, | ||
{ | ||
"Id": "ig-124", | ||
"Name": "Core", | ||
"Market": "ON_DEMAND", | ||
"InstanceGroupType": "CORE", | ||
"InstanceType": "m4.xlarge", | ||
"RequestedInstanceCount": 1, | ||
"RunningInstanceCount": 1, | ||
"Status": { | ||
"State": "RUNNING", | ||
"StateChangeReason": { | ||
"Message": "" | ||
}, | ||
"Timeline": { | ||
"CreationDateTime": "2024-12-19T12:33:52.539000+00:00", | ||
"ReadyDateTime": "2024-12-19T12:39:40.738000+00:00" | ||
} | ||
}, | ||
"Configurations": [], | ||
"ConfigurationsVersion": 0, | ||
"LastSuccessfullyAppliedConfigurations": [], | ||
"LastSuccessfullyAppliedConfigurationsVersion": 0, | ||
"EbsBlockDevices": [ | ||
{ | ||
"VolumeSpecification": { | ||
"VolumeType": "gp2", | ||
"SizeInGB": 32 | ||
}, | ||
"Device": "/dev/sdb" | ||
}, | ||
{ | ||
"VolumeSpecification": { | ||
"VolumeType": "gp2", | ||
"SizeInGB": 32 | ||
}, | ||
"Device": "/dev/sdc" | ||
} | ||
], | ||
"EbsOptimized": true, | ||
"ShrinkPolicy": {} | ||
} | ||
] | ||
} | ||
} |
90 changes: 90 additions & 0 deletions
90
pkg/fleet/installer/setup/djm/testdata/extraInstanceData.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
{ | ||
"masterHost": "localhost", | ||
"systemActions": [], | ||
"startupScripts": [], | ||
"hadoopEnv": {}, | ||
"jobFlowId": "j-456", | ||
"jobFlowCreationInstant": 1734611632519, | ||
"instanceCount": 2, | ||
"masterInstanceType": "m4.xlarge", | ||
"instanceGroups": { | ||
"CORE": [ | ||
{ | ||
"instanceType": "m4.xlarge", | ||
"instanceCount": 1 | ||
} | ||
], | ||
"MASTER": [ | ||
{ | ||
"instanceType": "m4.xlarge", | ||
"instanceCount": 1 | ||
} | ||
] | ||
}, | ||
"slaveInstanceType": "m4.xlarge", | ||
"supportedProducts": [], | ||
"runJobTracker": false, | ||
"runTaskTracker": false, | ||
"runNameNode": true, | ||
"runDataNode": false, | ||
"runResourceManager": true, | ||
"runNodeManager": false, | ||
"instanceGroupId": "ig-123", | ||
"instanceRole": "master", | ||
"marketType": "on_demand", | ||
"instanceGroupInstanceType": "m4.xlarge", | ||
"hasIAMInstanceProfile": true, | ||
"hadoopVersion": "Hadoop_3_3_6", | ||
"region": "us-east-1", | ||
"regionSet": "aws", | ||
"deleteSteps": false, | ||
"stepConcurrencyLevel": 2, | ||
"emrNotebookProfilerIntegrationEnabled": true, | ||
"debuggingInfo": { | ||
"sdbDisabled": false, | ||
"sqsEnabled": true, | ||
"sqsQueueName": "AWS-ElasticMapReduce-j-456", | ||
"stepFailureAnalysisEnabled": true, | ||
"emrLogAnalyticsEnabled": false, | ||
"appViewerForSparkEnabled": true, | ||
"frequencyOfUpload": 120, | ||
"appViewerDelayBetweenCyclesInSeconds": 120, | ||
"appViewerFileSizeThresholdToDelayUploadInGb": 2.0, | ||
"appViewerLargeFileCycleDelay": 2, | ||
"onClusterUiProxyEnabled": true | ||
}, | ||
"accountId": "123456", | ||
"releaseLabel": "emr-7.2.0", | ||
"serviceEndpoints": { | ||
"S3_DEFAULT": "s3.amazonaws.com", | ||
"S3_LOCAL": "s3.amazonaws.com", | ||
"DYNAMODB": "dynamodb.us-east-1.amazonaws.com", | ||
"MONITORING": "http://monitor-api.amazon.com", | ||
"DNS": "dns-manage.amazon.com", | ||
"TIMBER": "https://timber-iad.amazon.com", | ||
"CLOUDWATCH": "monitoring.us-east-1.amazonaws.com", | ||
"EDP": "datapipeline.us-east-1.amazonaws.com", | ||
"STS": "sts.us-east-1.amazonaws.com", | ||
"EC2": "ec2.us-east-1.amazonaws.com", | ||
"SNS": "sns.us-east-1.amazonaws.com", | ||
"IAMADMIN": "iamadmin.amazonaws.com", | ||
"RDS": "rds.us-east-1.amazonaws.com", | ||
"SWF": "swf.us-east-1.amazonaws.com", | ||
"MONITORING_READ": "http://monitor-api.amazon.com", | ||
"SIMPLEDB": "sdb.amazonaws.com", | ||
"EMR": "elasticmapreduce.us-east-1.amazonaws.com", | ||
"KMS": "kms.us-east-1.amazonaws.com", | ||
"IAM": "iam.amazonaws.com", | ||
"SQS": "sqs.us-east-1.amazonaws.com", | ||
"SIM": "https://maxis-service-prod-iad.amazon.com", | ||
"FLUXO": "ticket-api.amazon.com", | ||
"KINESIS": "kinesis.us-east-1.amazonaws.com", | ||
"AEGIR": "https://aegir-us-east-1.amazon.com", | ||
"REDSHIFT": "redshift.us-east-1.amazonaws.com", | ||
"ANYSCALE": "autoscaling.us-east-1.amazonaws.com" | ||
}, | ||
"numCandidates": 1, | ||
"haEnabled": false, | ||
"candidates": [] | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"instanceGroupId": "ig-123", | ||
"isMaster": true | ||
} |