Giter Club home page Giter Club logo

Comments (6)

dennishuo avatar dennishuo commented on September 5, 2024

I can try to repro this. While bdutil doesn't have built-in commands for "stopping" and "starting" a cluster, there are various flavors of stopping/starting which are indeed supported.

How did you "stop" and "restart" your cluster? Did you only stop/restart your master, or did you do it on every node? Are you using Local SSDs, and are you using USE_ATTACHED_PDS?

from bdutil.

blogmaniak avatar blogmaniak commented on September 5, 2024

This example was based on single node using the following command:
./bdutil deploy -e hadoop2_env.sh --bucket anintelcluster -e single_node_env.sh -e spark_env.sh -P anintelcluster
All I did was top the single node. However, when I bring it up, even though the hadoop and spark services are running, my application is not able to access them via configured URL e.g. hadoop URL is hdfs://anintelcluster:8020.
The way I stopped was using the developer console - Compute>VM>select VM>Stop/Start.
Re: HDD - I use whatever is default for the bdutil script - no changes to that.

from bdutil.

dennishuo avatar dennishuo commented on September 5, 2024

Alright, I did manage to repro. There might be some race-condition that's more specific to a single-node environment during startup. I was able to repair HDFS simply by running:

/home/hadoop/hadoop-install/sbin/stop-all.sh
/home/hadoop/hadoop-install/sbin/start-all.sh

When I did that I was able to access my old data inside HDFS again that I added prior to the stop/start. I'll check on why the automatic restart didn't work.

EDIT: Forgot to mention, you have to run those scripts as user hadoop, so first run sudo su hadoop.

from bdutil.

dennishuo avatar dennishuo commented on September 5, 2024

Alright, tracked down the bug to configure_startup_processes.sh and spark_configure_startup_processes.sh not correctly adding worker daemons in the case of single-node clusters. This bug only affects clusters which use single_node_env.sh. I've successfully tested a fix and sent a pull request which we'll merge shortly: #42

You can optionally clone from my fork in the meantime to check it out: https://github.com/dennishuo/bdutil

Or it should it make it into the master within a couple days.

from bdutil.

dennishuo avatar dennishuo commented on September 5, 2024

#42 has been merged, issue should be fixed now if you use bdutil at head revision.

from bdutil.

blogmaniak avatar blogmaniak commented on September 5, 2024

Confirm bug fixed ..

from bdutil.

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.