CDH4.x : Installation hangs there - cloudera

I've downloaded cloudera-manager-installer.bin from CDH's official site. But when I trying to install it, the program hangs at 40% progress.
The installation log looks like this:
Loading mirror speeds from cached hostfile
* epel: mirrors.neusoft.edu.cn
* rpmforge: ftp.riken.jp
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package cloudera-manager-server.x86_64 0:4.8.2-1.cm482.p0.101.el6 will be installed
--> Processing Dependency: cloudera-manager-daemons = 4.8.2 for package: cloudera-manager-server-4.8.2-1.cm482.p0.101.el6.x86_64
--> Running transaction check
---> Package cloudera-manager-daemons.x86_64 0:4.8.2-1.cm482.p0.101.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
cloudera-manager-server x86_64 4.8.2-1.cm482.p0.101.el6 cloudera-manager 7.7 k
Installing for dependencies:
cloudera-manager-daemons
x86_64 4.8.2-1.cm482.p0.101.el6 cloudera-manager 148 M
Transaction Summary
================================================================================
Install 2 Package(s)
Total download size: 148 M
Installed size: 203 M
Downloading Packages:
I can access archive.cloudera.com from my server.
How can I deal with this problem ?

Try the following
sudo unmount cm_processes
sudo rm -Rf /var/run/cloudera*
Doing it solved this for me.

Related

Failed to Upgrade Nginx modules after upgrade Nginx to v1.22.0

I upgraded Nginx from 1.16 to 1.22.0 after that tried to upgrade modules but every attempt failed.
My OS="CentOS 7"
Nginx Modules that need to upgrade:
nginx-mod-http-image-filter.x86_64 1:1.16.1-1.el7 #epel
nginx-mod-http-perl.x86_64 1:1.16.1-1.el7 #epel
nginx-mod-http-xslt-filter.x86_64 1:1.16.1-1.el7 #epel
nginx-mod-stream.x86_64 1:1.16.1-1.el7 #epel
nginx-mod-mail.x86_64 1:1.16.1-1.el7 #epel
One of the available modules and it's info:
# yum info nginx-mod-stream
Installed Packages
Name : nginx-mod-stream
Arch : x86_64
Epoch : 1
Version : 1.16.1
Release : 1.el7
Size : 171 k
Repo : installed
From repo : epel
Summary : Nginx stream modules
URL : http://nginx.org/
License : BSD
Description : Nginx stream modules.
Available Packages
Name : nginx-mod-stream
Arch : x86_64
Epoch : 1
Version : 1.20.1
Release : 9.el7
Size : 89 k
Repo : epel/x86_64
Summary : Nginx stream modules
URL : https://nginx.org
License : BSD
Description : Nginx stream modules.
One of my efforts:
# yum update nginx-mod-stream
ackage nginx-mod-stream.x86_64 1:1.20.1-9.el7 will be an update
--> Processing Dependency: nginx(abi) = 1.20.1 for package: 1:nginx-mod-stream-1.20.1-9.el7.x86_64
--> Finished Dependency Resolution
Error: Package: 1:nginx-mod-stream-1.20.1-9.el7.x86_64 (epel)
Requires: nginx(abi) = 1.20.1
Available: 1:nginx-1.20.1-9.el7.x86_64 (epel)
nginx(abi) = 1.20.1
Installed: 1:nginx-1.22.0-1.el7.ngx.x86_64 (#nginx-stable)
Not found
Available: 1:nginx-1.8.0-1.el7.ngx.x86_64 (nginx-stable)
Not found
Available: 1:nginx-1.8.1-1.el7.ngx.x86_64 (nginx-stable)
Not found
Available: 1:nginx-1.9.0-1.el7.ngx.x86_64 (nginx-mainline)
...
...
So here's my question, How can I upgrade them?
Note that your NGINX has been installed from the NGINX stable repository. From your output:
Installed: 1:nginx-1.22.0-1.el7.ngx.x86_64 (#nginx-stable)
If you want to keep NGINX installed from that repo, the EPEL's packages are unnecessary (they don't do anything, because NGINX package from its official repository already includes stream module).
So all you have to do is yum remove nginx-mod-*

installing openblas on CentOS 8

I am trying to install R on CentOS 8 and it requires openblas-0.3.3-5.el8, but using dnf the AppStream repo only gives me openblas-0.3.3-2.el8. Is there any way to force it to install the newer version? Thanks in advance, I am really stuck here.
[bosr#rth.ad.rothschild.com#usd1sapp101 ~]$ sudo dnf install openblas
Last metadata expiration check: 0:39:47 ago on Tue 25 May 2021 06:50:01 PM CEST.
Dependencies resolved.
=================================================================================================
Package Architecture Version Repository Size
=================================================================================================
Installing:
openblas x86_64 0.3.3-2.el8 InstallMedia-AppStream 4.3 M
Transaction Summary
=================================================================================================
Install 1 Package
Total size: 4.3 M
Installed size: 31 M
Is this ok [y/N]: N
If I try to install R, here is the error message I get:
> [bosr#rth.ad.rothschild.com#usd1sapp101 ~]$ sudo dnf update
> CentOS-8 - AppStream 271 MB/s | 5.4 MB 00:00
> CentOS-8 - Base 248 MB/s | 2.2 MB 00:00
> CentOS-8 - PowerTools 5.1 MB/s | 2.0 MB 00:00
> Extra Packages for Enterprise Linux Modular 8 - x86_64 594 kB/s | 610 kB 00:01
> Extra Packages for Enterprise Linux 8 - x86_64 6.4 MB/s | 9.4 MB 00:01
> Error:
> Problem: package R-devel-4.0.5-1.el8.x86_64 requires R-core-devel = 4.0.5-1.el8, but none of the providers can be installed
> - package R-core-devel-4.0.5-1.el8.x86_64 requires openblas-devel, but none of the providers can be installed
> - cannot install the best update candidate for package R-devel-1-1.x86_64
> - nothing provides openblas(x86-32) = 0.3.3-5.el8 needed by openblas-devel-0.3.3-5.el8.i686
> - nothing provides openblas-threads(x86-32) = 0.3.3-5.el8 needed by openblas-devel-0.3.3-5.el8.i686
> - nothing provides openblas(x86-64) = 0.3.3-5.el8 needed by openblas-devel-0.3.3-5.el8.x86_64
> - nothing provides openblas-threads(x86-64) = 0.3.3-5.el8 needed by openblas-devel-0.3.3-5.el8.x86_64
> (try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
> [bosr#rth.ad.rothschild.com#usd1sapp101 ~]$
The missing packages are in a repo called powertools that is disabled on Centos8 by default. You need to enable this repo then try again. On my GCP VM I ran:
sudo yum install epel-release
sudo yum config-manager --set-enabled powertools
sudo yum install R
I used wget to download the newer version of openblas and openblas-threads. I was then able to install them and then install R. Not sure why the repo wasn't giving me the latest version, but I am good now.

Error deploying shiny app utilizing hydromad

So here is the error i am getting from the console. I understand that hydromad package is not on cran but I have added it as secondary repos in packages(Tools options in R studio) and in .R profile file. Still I am getting this error
****Preparing to deploy application...DONE
Uploading bundle for application: 2120925...DONE
Deploying bundle: 3058356 for application: 2120925 ...
Waiting for task: 720810692
building: Parsing manifest
building: Building image: 3408182
building: Installing system dependencies
building: Fetching packages
error: Building package: hydromad
########################## Begin Task Log ################################
[2020-04-24T06:51:09.225825780+0000] Execute script: packages/build/sys.sh
+ set -e
+ apt-get update -qq
+ apt-get install -y libapparmor-dev
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
libapparmor-dev
0 upgraded, 1 newly installed, 0 to remove and 114 not upgraded.
Need to get 67.8 kB of archives.
After this operation, 229 kB of additional disk space will be used.
Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libapparmor-dev amd64 2.10.95-0ubuntu2.11 [67.8 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 67.8 kB in 0s (0 B/s)
Selecting previously unselected package libapparmor-dev:amd64.
(Reading database ... 119718 files and directories currently installed.)
Preparing to unpack .../libapparmor-dev_2.10.95-0ubuntu2.11_amd64.deb ...
Unpacking libapparmor-dev:amd64 (2.10.95-0ubuntu2.11) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libapparmor-dev:amd64 (2.10.95-0ubuntu2.11) ...
########################### End Task Log #################################
Error: Unhandled Exception: Child Task 720810693 failed: Error building image: Error fetching hydromad (0.9-26) source. <CRANPackageSource repo='http://cran.rstudio.org'> unable to satisfy package: hydromad (0.9-26)
In addition: Warning message:
In FUN(X[[i]], ...) :
Package 'hydromad 0.9-26' was installed from sources; Packrat will assume this package is available from a CRAN-like repository during future restores
Execution halted****
Can anyone help me resolve this error? Will be grateful
Welcome to StackOverflow! Your question is quite specific, so I would recommend to use a more specialized resource. The good news is that package hydromad has its own forum

Error starting OpenCPU in rstudio OnAttach failed

I am trying to get a simple OpenCPU Apps (from https://www.opencpu.org/download.html).
Since I am on Ubuntu on AWS, I follow the instructions for Ubuntu:
# Requires Ubuntu 14.04 (Trusty) or 16.04 (Xenial)
sudo add-apt-repository -y ppa:opencpu/opencpu-1.6
sudo apt-get update
sudo apt-get upgrade
# Installs OpenCPU server
sudo apt-get install -y opencpu
# Done! Open http://yourhost/ocpu in your browser
# Optional: installs rstudio in http://yourhost/rstudio
sudo apt-get install -y rstudio-server
Goes through all right.
Next I try to install the package in Rstudio:
install.packages("opencpu")
Installing package into ‘/home/ruser/R/x86_64-pc-linux-gnu-library/3.3’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/opencpu_1.6.1.tar.gz'
Content type 'unknown' length 563159 bytes (549 KB)
==================================================
downloaded 549 KB
* installing *source* package ‘opencpu’ ...
** package ‘opencpu’ successfully unpacked and MD5 sums checked
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (opencpu)
The downloaded source packages are in
‘/tmp/RtmpON3Ujv/downloaded_packages’
> library(opencpu)
Initiating OpenCPU server...
Using config: /home/ruser/.opencpu.conf
OpenCPU started.
[httpuv] http://myserver/rstudio/p/1529/ocpu
Error : .onAttach failed in attachNamespace() for 'opencpu', details:
call: rhttpd$init()
error: could not find function "startDynamicHelp"
Error: package or namespace load failed for ‘opencpu’
This is where I get the error. Tried googling the error but no luck.
#gaurav is correct. The instructions on opencpu are very misleading, because it looks like they're showing a single set of instructions, but in fact, the R commands are for running opencpu in an interactive R session, not with your newly installed opencpu cloud server.
To run the sample apps on your new cloud server (which is what I assume you are trying to do), you need to follow the instructions for the cloud server.
Here's the link to the cloud server docs that helped me:
https://cran.r-project.org/web/packages/opencpu/vignettes/opencpu-server.pdf
Specifically, to run the sample apps, you'll need to start an R session as root, and install the packages:
sudo -i
R
#then from r session
library(devtools)
install_github("opencpu/gitstats")
install_github("opencpu/stocks")
#then quit
quit()
exit
then restart the opencpu service:
sudo service opencpu restart
then, you can navigate to the package using the opencpu api. In a web browser, go to:
http://localhost/ocpu/library/gitstats/www/
and voila-

What is wrong about this openstack error

I install openstack (liberty) on my server, after I installed the openstack client package, but, I meet such error when I execute openstack:
[root#node0 tools]# openstack
Traceback (most recent call last):
File "/usr/bin/openstack", line 6, in <module>
from openstackclient.shell import main
File "/usr/lib/python2.7/site-packages/openstackclient/shell.py", line 24, in <module>
from cliff import app
File "/usr/lib/python2.7/site-packages/cliff/app.py", line 14, in <module>
from .complete import CompleteCommand
File "/usr/lib/python2.7/site-packages/cliff/complete.py", line 10, in <module>
from cliff import command
File "/usr/lib/python2.7/site-packages/cliff/command.py", line 9, in <module>
#six.add_metaclass(abc.ABCMeta)
AttributeError: 'module' object has no attribute 'add_metaclass'
what is the problem happend? My OS is centos7, what I did when I install python-openstackclient like this:
[root#node0 tools]# yum install python-openstackclient
List item
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.btte.net
* epel: ftp.riken.jp
* extras: mirrors.yun-idc.com
* updates: mirrors.btte.net
Resolving Dependencies
--> Running transaction check
---> Package python-openstackclient.noarch 0:1.7.1-1.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
============================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================
Installing:
python-openstackclient noarch 1.7.1-1.el7 centos-openstack-liberty 431 k
Transaction Summary
=============================================================================================================================================
Install 1 Package
Total download size: 431 k
Installed size: 2.6 M
Is this ok [y/d/N]: y
Downloading packages:
python-openstackclient- 1.7.1-1.el7.noarch.rpm | 431 kB 00:00:05
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : python-openstackclient- 1.7.1-1.el7.noarch 1/1
Verifying : python-openstackclient- 1.7.1-1.el7.noarch 1/1
Installed:
python-openstackclient.noarch 0:1.7.1-1.el7
Complete!
please help me to check what happened! any suggestion is welcomed, thanks!
Try to upgrade six module:
pip install --upgrade six
or re-installing it:
pip uninstall six
pip install six
based on the suggestion here.

Resources