Skip to main content

Posts

How to Find Your Linux Version or Distro Release

How to Find Your Linux Version or Distro Release, and Why It Matters Finding your kernel release There will be times when you must know your kernel release number. Fortunately, the developers saw fit to include a handy tool that will quickly display your kernel release number. Here’s what you need to do: Open up a terminal window Issue the command uname -r Take note of the information displayed (Figure 1). Finding your distribution release There may be times when you need to know the release number you currently use. Again, there’s a handy command to find that information. Do the following: Open a terminal window Issue the command lsb_release -a For more details pls. check the source : link

Installing Clouera Manager on Ubuntu

Links am referring to : Video : https://www.youtube.com/watch?v=z0l87tArUDk Change Hostname : https://support.rackspace.com/how-to/centos-hostname-change/ What is Hostname : https://en.wikipedia.org/wiki/Hostname , https://support.suso.com/supki/What_is_the_difference_between_a_hostname_and_a_domain_name 1. Create the Oozie Database and Oozie MySQL User : https://www.cloudera.com/documentation/enterprise/5-6-x/topics/install_oozie_ext_db.html#concept_dkp_xh4_hp For example, using the MySQL mysql command-line tool: $ mysql -u root -p Enter password: ****** mysql> create database oozie; Query OK, 1 row affected (0.03 sec) mysql> grant all privileges on oozie.* to 'oozie'@'localhost' identified by 'oozie'; Query OK, 0 rows affected (0.03 sec) mysql> grant all privileges on oozie.* to 'oozie'@'%' identified by 'oozie'; Query OK, 0 rows affected (0.03 sec) mysql> exit Bye Add the MySQL JDBC Driver JAR to

How to change host name

Ubuntu change hostname command The procedure to change the computer name on Ubuntu Linux: Type the following command to edit /etc/hostname using nano or vi text editor: sudo nano /etc/hostname Delete the old name and setup new name. Next Edit the /etc/hosts file: sudo nano /etc/hosts Replace any occurrence of the existing computer name with your new one. Reboot the system to changes take effect: sudo reboot     How to change the Ubuntu server hostname without a system restart? Type the following commands: $ sudo hostname new-server-name-here Next edit the /etc/hostname file and update hostname: $ sudo nano /etc/hostname Finally, edit the /etc/hosts file and update the lines that reads your old-host-name: $ sudo nano /etc/hosts

Cloudera manager Installation on Ubuntu

Steps followed :  1. change hosts file 2.sudo apt-get install ssh 3. save public keys as 'authorized_keys'    ssh-keygen    cd ~/.ssh    cat id_rsa.pub  >  authorized_keys 4. download cloudera repo from "wget http://archive-primary.cloudera.com/cdh5/one-click-install/precise/amd64/cdh5-repository_1.0_all.deb" 5. install this file using "sudo dpkg -i cdh5-repository_1.0_all.deb" 6. download cloudera install manager from "wget http://archive-primary.cloudera.com/cm5/installer/latest/cloudera-manager-installer.bin" 7. change permission on file "chmod +x cloudera-manager-installer.bin" 8. start the installer "sudo ./cloudera-manager-installer.bin" 9. follow steps and your install is complete. Errors faced while installtion : 1. After step 8 Errors faced as I had previous Cloudera  installations on my system . Resolution : unsinstall the previous installation if any . -->sudo  /usr/share/cmf/uninstall-clo

how to check and add USER on Ubuntu

To check existing users in Ubuntu : cut -d: -f1 /etc/passwd   To Add User in Ubuntu : sudo adduser new_username or: sudo useradd new_username To remove/delete a user, first you can use: sudo userdel username To delete the home directory for the deleted user account : sudo rm -r /home/ username (Please use with caution the above command!) To modify the username of a user: usermod -l new_username old_username   To change the password for a user: sudo passwd username

how to reset mysql root password

Problem : 1. ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) Solution : Rest root password   sudo dpkg-reconfigure mysql-server-5 .5              This will change the root password. 2.  ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Solution :  ps ax | grep mysql                  sudo service mysql start                  mysql start/running, process 7226