Skip to main content

Posts

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

Shortcuts ...

1. Accessing  browser's address bar directly from the keyboard  Note: All shortcuts that use Command apply only to Macs. Firefox : Control+L, Alt+D, F6 (Windows); Command+L (Mac) Chrome/Safari/WebKit : Control+L, Alt+D, F6 (Windows); Command+L (Mac) Internet Explorer : Control+L, Alt+D, F6 Opera : Control+L, Alt+D, F6/Command+L In Chrome, Ctrl+K puts you in the address bar with a question mark, which explicitly tells Chrome that you want to search. Here's an added bonus. If your browser has a separate search box Firefox : Control+K (Windows); Command+K (Mac) Safari : Command+Option+F (Mac) Internet Explorer : Control+E Opera : Control+E (Windows); Command+E (Mac)