/** * Create the bootstrap action configuration List from all the bootstrapping scripts specified. * * @param emrClusterDefinition the EMR definition name value. * * @return list of bootstrap action configurations that contains all the bootstrap actions for the given configuration. */ private ArrayList<BootstrapActionConfig> getBootstrapActionConfigList(EmrClusterDefinition emrClusterDefinition) { // Create the list ArrayList<BootstrapActionConfig> bootstrapActions = new ArrayList<>(); // Add encryption script support if needed if (emrClusterDefinition.isEncryptionEnabled() != null && emrClusterDefinition.isEncryptionEnabled()) { bootstrapActions.add(getBootstrapActionConfig(ConfigurationValue.EMR_ENCRYPTION_SCRIPT.getKey(), getEncryptionScriptLocation())); } // Add bootstrap actions. addDaemonBootstrapActionConfig(emrClusterDefinition, bootstrapActions); addHadoopBootstrapActionConfig(emrClusterDefinition, bootstrapActions); addCustomBootstrapActionConfig(emrClusterDefinition, bootstrapActions); addCustomMasterBootstrapActionConfig(emrClusterDefinition, bootstrapActions); // Return the object return bootstrapActions; }
/** * Create the bootstrap action configuration List from all the bootstrapping scripts specified. * * @param emrClusterDefinition the EMR definition name value. * * @return list of bootstrap action configurations that contains all the bootstrap actions for the given configuration. */ private ArrayList<BootstrapActionConfig> getBootstrapActionConfigList(EmrClusterDefinition emrClusterDefinition) { // Create the list ArrayList<BootstrapActionConfig> bootstrapActions = new ArrayList<>(); // Add encryption script support if needed if (emrClusterDefinition.isEncryptionEnabled() != null && emrClusterDefinition.isEncryptionEnabled()) { bootstrapActions.add(getBootstrapActionConfig(ConfigurationValue.EMR_ENCRYPTION_SCRIPT.getKey(), getEncryptionScriptLocation())); } // Add bootstrap actions. addDaemonBootstrapActionConfig(emrClusterDefinition, bootstrapActions); addHadoopBootstrapActionConfig(emrClusterDefinition, bootstrapActions); addCustomBootstrapActionConfig(emrClusterDefinition, bootstrapActions); addCustomMasterBootstrapActionConfig(emrClusterDefinition, bootstrapActions); // Return the object return bootstrapActions; }
emrClusterDefinitionOverride.setEc2NodeIamProfileName("test" + Math.random()); expectedEmrClusterDefinition.setEc2NodeIamProfileName(emrClusterDefinitionOverride.getEc2NodeIamProfileName()); emrClusterDefinitionOverride.setEncryptionEnabled(!expectedEmrClusterDefinition.isEncryptionEnabled()); expectedEmrClusterDefinition.setEncryptionEnabled(emrClusterDefinitionOverride.isEncryptionEnabled()); emrClusterDefinitionOverride.setHadoopVersion("test" + Math.random()); expectedEmrClusterDefinition.setHadoopVersion(emrClusterDefinitionOverride.getHadoopVersion());
if (emrClusterDefinitionOverride.isEncryptionEnabled() != null) emrClusterDefinition.setEncryptionEnabled(emrClusterDefinitionOverride.isEncryptionEnabled());
if (emrClusterDefinitionOverride.isEncryptionEnabled() != null) emrClusterDefinition.setEncryptionEnabled(emrClusterDefinitionOverride.isEncryptionEnabled());
lhsEncryptionEnabled = this.isEncryptionEnabled(); Boolean rhsEncryptionEnabled; rhsEncryptionEnabled = that.isEncryptionEnabled(); if (!strategy.equals(LocatorUtils.property(thisLocator, "encryptionEnabled", lhsEncryptionEnabled), LocatorUtils.property(thatLocator, "encryptionEnabled", rhsEncryptionEnabled), lhsEncryptionEnabled, rhsEncryptionEnabled, (this.encryptionEnabled!= null), (that.encryptionEnabled!= null))) { return false;
lhsEncryptionEnabled = this.isEncryptionEnabled(); Boolean rhsEncryptionEnabled; rhsEncryptionEnabled = that.isEncryptionEnabled(); if (!strategy.equals(LocatorUtils.property(thisLocator, "encryptionEnabled", lhsEncryptionEnabled), LocatorUtils.property(thatLocator, "encryptionEnabled", rhsEncryptionEnabled), lhsEncryptionEnabled, rhsEncryptionEnabled, (this.encryptionEnabled!= null), (that.encryptionEnabled!= null))) { return false;
lhsEncryptionEnabled = this.isEncryptionEnabled(); Boolean rhsEncryptionEnabled; rhsEncryptionEnabled = that.isEncryptionEnabled(); if (!strategy.equals(LocatorUtils.property(thisLocator, "encryptionEnabled", lhsEncryptionEnabled), LocatorUtils.property(thatLocator, "encryptionEnabled", rhsEncryptionEnabled), lhsEncryptionEnabled, rhsEncryptionEnabled, (this.encryptionEnabled!= null), (that.encryptionEnabled!= null))) { return false;
theEncryptionEnabled = this.isEncryptionEnabled(); strategy.appendField(locator, this, "encryptionEnabled", buffer, theEncryptionEnabled, (this.encryptionEnabled!= null));
theEncryptionEnabled = this.isEncryptionEnabled(); strategy.appendField(locator, this, "encryptionEnabled", buffer, theEncryptionEnabled, (this.encryptionEnabled!= null));
theEncryptionEnabled = this.isEncryptionEnabled(); strategy.appendField(locator, this, "encryptionEnabled", buffer, theEncryptionEnabled, (this.encryptionEnabled!= null));
theEncryptionEnabled = this.isEncryptionEnabled(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "encryptionEnabled", theEncryptionEnabled), currentHashCode, theEncryptionEnabled, (this.encryptionEnabled!= null));
theEncryptionEnabled = this.isEncryptionEnabled(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "encryptionEnabled", theEncryptionEnabled), currentHashCode, theEncryptionEnabled, (this.encryptionEnabled!= null));
theEncryptionEnabled = this.isEncryptionEnabled(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "encryptionEnabled", theEncryptionEnabled), currentHashCode, theEncryptionEnabled, (this.encryptionEnabled!= null));
if (encryptionEnabledShouldBeCopiedAndSet == Boolean.TRUE) { Boolean sourceEncryptionEnabled; sourceEncryptionEnabled = this.isEncryptionEnabled(); Boolean copyEncryptionEnabled = ((Boolean) strategy.copy(LocatorUtils.property(locator, "encryptionEnabled", sourceEncryptionEnabled), sourceEncryptionEnabled, (this.encryptionEnabled!= null))); copy.setEncryptionEnabled(copyEncryptionEnabled);
if (encryptionEnabledShouldBeCopiedAndSet == Boolean.TRUE) { Boolean sourceEncryptionEnabled; sourceEncryptionEnabled = this.isEncryptionEnabled(); Boolean copyEncryptionEnabled = ((Boolean) strategy.copy(LocatorUtils.property(locator, "encryptionEnabled", sourceEncryptionEnabled), sourceEncryptionEnabled, (this.encryptionEnabled!= null))); copy.setEncryptionEnabled(copyEncryptionEnabled);
if (encryptionEnabledShouldBeCopiedAndSet == Boolean.TRUE) { Boolean sourceEncryptionEnabled; sourceEncryptionEnabled = this.isEncryptionEnabled(); Boolean copyEncryptionEnabled = ((Boolean) strategy.copy(LocatorUtils.property(locator, "encryptionEnabled", sourceEncryptionEnabled), sourceEncryptionEnabled, (this.encryptionEnabled!= null))); copy.setEncryptionEnabled(copyEncryptionEnabled);