GithubHelp home page GithubHelp logo

Comments (8)

dunajevas avatar dunajevas commented on May 26, 2024

https://github.com/awslabs/emr-bootstrap-actions/blob/master/spark/maximize-spark-default-config script does grep statements wrong for example
NUM_CORE_NODES=$(grep /mnt/var/lib/info/job-flow.json -e "CORE" -A 4 | grep -e requestedInstanceCount | cut -d':' -f2 | sed 's/\s\+//g')
does not work since Core is not in camel case, at least in ami 3.3.1

from emr-bootstrap-actions.

jonchase avatar jonchase commented on May 26, 2024

This works on 3.3.1 for NUM_CORE_NODES:

"instanceGroupName": "core",
"instanceRole": "Core",
"marketType": "Spot",
"instanceType": "m3.2xlarge",
"requestedInstanceCount": 10,
"bidPrice": ".25"

grep /mnt/var/lib/info/job-flow.json -i -e "CORE" -A 4 | grep -e requestedInstanceCount | cut -d':' -f2 | sed 's/\s+//g' | cut -d',' -f1
10

from emr-bootstrap-actions.

dunajevas avatar dunajevas commented on May 26, 2024

core

that is strange.

from emr-bootstrap-actions.

jonchase avatar jonchase commented on May 26, 2024

I started a new cluster and set the instanceGroupName for the core group to 'CORE' and that worked better, but it's still messed up. Then it grabs the trailing comma when getting the requestedInstanceCount (like "1,") - which is why I added the "cut -d',' -f1" to the end of my command.

from emr-bootstrap-actions.

christopherbozeman avatar christopherbozeman commented on May 26, 2024

Thank you for the report and discussion. This issue is addressed in pull #40. These changes to script maximize-spark-default-config are now live at s3://support.elasticmapreduce/spark/.

Changed the script use instance count from json file and to key off the slaveInstanceType property instead to avoid issues with names.

There is still room for more improvement such that this script will can be called later while running to pick up resizes.

from emr-bootstrap-actions.

jonchase avatar jonchase commented on May 26, 2024

Changes look good to me. thx!!

from emr-bootstrap-actions.

christopherbozeman avatar christopherbozeman commented on May 26, 2024

jonchase - please close issue if resolved. Thanks!

from emr-bootstrap-actions.

jonchase avatar jonchase commented on May 26, 2024

Looks like someone beat me to closing it. Works as expected now, thanks.

from emr-bootstrap-actions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.