how to ask ambari agent not keep quiet when install packages in ubuntu - ambari

I'm installing new service in ambari managed cluster. my connection to hortonwork's repo seems too bad, it took lots of time to install ambari-server and ambari-agent it self (onece i almost thought it was dead).
the problem is that when i'm installing new service (e.g zeppelin, it also requires install other dependencies), the progress bar get stuck at 26% percent. it confused me if the installation get stucked or it's just too slow.
the command
ps -ef|grep apt
shows the the install is still there. only can't track the progress via /var/log/apt/term.log like normal apt-get installation (it shows the download progress).
the command shows the apt-get comes with an "-q" options which prevent me from tracking the log file.
so my question is that is there any place i can change the default behavior?

The -q option is added to "apt-get" command based on log level of ambari-agent. I.e. if log level for ambari-agent is set to DEBUG then apt-get without -q option is executed.
You can edit /etc/ambari-agent/conf/logging.conf, in [logger_root] section comment default line level=WARNING and add level=DEBUG. Then retstart ambari-agent. Now if you install any service them apt-get without -q will be executed.
Note:
If /etc/ambari-agent/conf/logging.conf does not exist then copy it from /etc/ambari-agent/conf/logging.conf.sample
Ambari agent specific changed need to be done on all cluster node

Related

stuck on the first step of ambari 2.7.3 install wizard

I have installed the Hortonworks sandbox HDP 2.6.5 (docker install).
After having many issues with Ambari "HeartBeat lost" I decided to upgrade Ambari to the latest version, so I cleanly uninstall ambari and then install 2.7.3 following the instructions from:
https://cwiki.apache.org/confluence/display/AMBARI/Installation+Guide+for+Ambari+2.7.3
After a long process I managed to complete the installation and start both services successfully: "ambari-server" and "ambari-agent"
Now I am stuck on the install wizard in the fisrt step without getting any error
or any progress. That is, after hitting "Next" it never gets to step 2. (see picture)
screenshot showing the issue
Things done so far to try to work this around:
restarting services (several times)
ambari-server upgrade (once more)
trying with chrome and IE
looking at the log files of ambari-server and ambari-agent
...but without success.
Has anybody come across the same issue?
Any clues?
Thanks for your help!
I have faced the same issue and I have activated the stack as shown below:
sudo sed -i 's|<active>false</active>|<active>true</active>|g' /var/lib/ambari-server/resources/stacks/HDP/2.6/metainfo.xml
sudo sed -i 's|<active>false</active>|<active>true</active>|g' /var/lib/ambari-server/resources/stacks/HDP/2.4/metainfo.xml
cat /var/lib/ambari-server/resources/stacks/HDP/2.6/metainfo.xml
cat /var/lib/ambari-server/resources/stacks/HDP/2.4/metainfo.xml
then I restarted the ambari-server and then it worked.
you have broken stacks for HDP. make sure you fresh build ambari 2.7.3 from source
https://cwiki.apache.org/confluence/display/AMBARI/Installation+Guide+for+Ambari+2.7.3
https://cwiki.apache.org/confluence/display/AMBARI/Ambari+Development
copy folder and contents inside HDP stacks
/root/ambari-release-2.7.3/ambari-server/src/main/resources/stacks/HDP
ambari-release-2.7.3 is folder result build from source
paste to broken ambari-server
/var/lib/ambari-server/src/main/resources/stacks/
restart ambari server

What is going on and how do I fix it?

https://prnt.sc/hlt4ey
I'm trying to get onto the xfce4 client from my chromebook (and it has worked before), however now this error is popping up. How do I fix this error?
My guess is you may not have the right user privileges. According to the error message you provided you are running an Ubuntu Linux environment.
If you haven't tried running the program through the terminal yet, attempt to do so.
The terminal can typically be opened by the key combination Ctrl+Alt+T on ubuntu linux.
Try using sudo command before running the program. This will run the command you enter using root privileges.
For example, if running the program on your terminal is
myName#ubuntu: xfce4
And this encounters an error, try to use sudo beforehand like so:
myName#ubuntu: sudo xfce4
Alternatively you can log in and not have to type sudo before every command.
myName#ubuntu: sudo bash
password:
If this fails you may need to update the package that contains the library. This can be done on the terminal in a fashion similar to:
myName#ubuntu: sudo apt-get install --only-upgrade xfce4

How to remove Rabbitmq so I can reinstall

I was having trouble, so I went into the registry and removed the service entry for rabbitmq. Now when I try to reinstall it says it already exists but it doesn't start (since I removed it) and I can do a sc delete rabbitmq. How do I totally remove all traces of it and reinstall from scratch? I guess it exists somewhere and the registry entry is all that is gone and the install program says it us just updating it when I do the rabbitmq-service install. I tried
rabbitmq-service remove but it says it doesn't exist.
I would suggest as follows:
sudo apt-get remove --auto-remove rabbitmq-server
sudo apt-get purge --auto-remove rabbitmq-server
It will uninstall rabbitmq and purge all data (users, vhost..)
RabbitMQ writes the service information into HKEY_LOCAL_MACHINE\SOFTWARE\Ericsson\Erlang\ErlSrv\1.1\RabbitMQ
To remove RabbitMQ manually you have to:
remove the key HKEY_LOCAL_MACHINE\SOFTWARE\Ericsson\Erlang\ErlSrv\1.1\RabbitMQ
remove the directory C:\Users\%USERNAME%\AppData\Roaming\RabbitMQ
remove the installation-folder.
Next time I suggest to use the rabbitmq-service.bat command to install and remove the service.
you have to execute it as administrator
You have to uninstall the Erlang and Rabbitmq both. After you are done with the uninstall, then try to install the Rabbitmq and it will ask you to install Erlang again.

start redis-server on debian/ubuntu boot

I am trying to create a docker container where redis starts at boot.
there will be other foreground services running on that other container which will connect to the redis db.
for some reason the service does not start when i run the container.
here my simplified Dockerfile
FROM debian
# this solves an issue described here:
# http://askubuntu.com/questions/365911/why-the-services-do-not-start-at-installation
RUN sed -i -e s/101/0/g /usr/sbin/policy-rc.d
# install redis-server
RUN apt-get update && apt-get install -y redis-server
# updates init script (redundant)
RUN update-rc.d redis-server defaults
# ping google to keep the container running in foreground
CMD ["ping", "google.com"]
can anybody explain me why this is not working and how this should be done right?
So a docker container is like a full OS but has some key differences. It's not going to run a full init system. It's designed and intended to run a single process tree. While you can run a supervisor such as runit et al within a container, you are really working against the grain of docker and all the tooling and documentation is going to lead you away from using containers like VMs and toward the harmony of 1 process/service per container.
So redis isn't starting because the ping command is literally the only process running in your container.
there will be other foreground services running on that other container which will connect to the redis db.
Don't do it this way. Really. Everything will be easier when you put 1 process in each container and connect them via network links.
Digging up an old question here, but I landed on it whilst trying to package a really simple Redis job queue into an existing docker image setup. I needed it to start up on image boot so the app could have access to it. Memory and performance are not a concern in this scenario or an external Redis server would absolutely be the right choice.
Here's what I did in my Dockerfile for a simple NodeJs app to make it work without editing any system files post-install:
RUN apt-get update && apt-get -y redis-server
CMD service redis-server start & node dist/src/main
Sort of crude using parallel command processes, but as the accepted answer points out this is not a real operating system so we really only care about Redis being online when the app is.

SSH Install Mysqlnd - Package Not Found

I am trying to install Mysqlnd using ssh and the yum command but I keep getting the error that no such package exists. Can someone help me out? I have also tried yum search php-mysqlnd and there is no such package on the system.
Sounds like you'll have to pull it from another repo, I suggest Atomic's repo.
They have a simple one liner auto installer, give it a shot.
wget -q -O - http://www.atomicorp.com/installers/atomic | sh
Then of course yum update and then fire off yum install php-mysqlnd
Edit: Sounds like you've got some yum excludes active.
vi /etc/yum.conf and you'll likely see something to the effect of exclude=mysql* php*. You can comment out this line or just remove them altogether.
Another options is to use the command line option...
yum --disableexcludes=all which will kill all excludes currently active.
yum --disableexcludes=main which will kill all excludes in your main yum.conf.