USCDataScience / sparkler

Spark-Crawler: Apache Nutch-like crawler that runs on Apache Spark.
http://irds.usc.edu/sparkler/
Apache License 2.0
410 stars 143 forks source link

Newbie question #177

Closed chrome83 closed 4 years ago

chrome83 commented 4 years ago

Hello dev, sorry for my newbie question, but i need to add sparkler user to sudo, or just if it's possible the root password for docker container to install software via apt.

thammegowda commented 4 years ago

you dont need to add sparkler user to sudo. You should install docker and have it running. Please refer to this page https://github.com/USCDataScience/sparkler/wiki/Build-and-Deploy#using-prebuilt-docker-image

chrome83 commented 4 years ago

Ok, sorry for my bad english, my fault. :smile: I try to explain better, in the docker sparkler container, i need to add some software via apt. The command need elevated privilege. It's possible having root password?

thammegowda commented 4 years ago

@chrome83 this is a question related to docker and you can find documentation everywhere on how to get root user inside a docker image.

By default we have added non sudo user sparkler https://github.com/USCDataScience/sparkler/blob/5c2201310623b70e6bf024e51e521eb4bffc4723/bin/dockler.sh#L36

Try changing that user to root and see if it works (I have not tested it recently;). Here is a link to docker documentation https://docs.docker.com/engine/reference/commandline/exec/

chrome83 commented 4 years ago

@thammegowda many thank's, it worked, sorry for my stupid question :smile: , but i think when you have builded the images, have inserted your root password. Best regard :hand: