Skip to content

Tag: redhat

Renaming files in a directory based on an instructions file

I have a directory that regroups a .sql file and multiple data files. The .sql file contains an unload instructions for every .unl file the issue I have is that the names of the .unl files are not the same as the instructions on .sql. Usually the name should be TABLE_TABID.unl Im looking for a way to retreive…

CLPPLUS login failing

I am trying to login to remote DB2 using clpplus but can’t login as password contains @. clpplus -nw user/p@sswd@145.xx.xx.212:60000/Dbname but it fails saying: Is there any work around of it? Answer With the bash shell, enclose the password with ‘ and additionally escape the @ with @ (and the sam…

How to zip multiple folders separately in linux

Below mentioned folders contain some data. I need to zip all the folders separately. With this Command, I can zip only one folder How can I zip all the folders separately at once? Answer First, make sure that you are in the directory where the above mentioned folders are. Then run: find . -type d -maxdepth 1 …

How to install R and RMySQL in RedHat Linux 8?

How do I install R and RMYSQL on RedHat Linux 8? Cannot get the epel working. Trying to install R gives dependency errors. Answer Followed the instructions here: https://linuxconfig.org/install-r-on-linux-redhat-8 (Assuming that you have already installed the MySQL) Untar the downloaded R : Now install the fo…

How to sync configuration between hadoop worker machines

We have huge hadoop cluster and we installed one coordinator preso node and 850 presto workers nodes. now we want to change the values in the file – config.properties but this should be done on all the workers! so under the file is like this and we want to change it to but this was done only on the firs…