//to stop mysql service
[cloudera@quickstart ~]$ sudo service mysqld stop;
Stopping mysqld:
// service stopped already. so it throws error
[cloudera@quickstart ~]$ mysql -uroot -pcloudera
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
// start mysql service
[cloudera@quickstart ~]$ sudo service mysqld start
Starting mysqld:
// logon to mysql
[cloudera@quickstart ~]$ mysql -uroot -pcloudera
//import .sql script file with data into mysql to create database and tables
mysql> source /home/cloudera/Desktop/POCs/ds/world.sql
mysql> use world
Database changed
mysql> show tables;
+-----------------+
| Tables_in_world |
+-----------------+
| City |
| Country |
| CountryLanguage |
+-----------------+
3 rows in set (0.00 sec)
Subscribe to:
Post Comments (Atom)
Flume - Simple Demo
// create a folder in hdfs : $ hdfs dfs -mkdir /user/flumeExa // Create a shell script which generates : Hadoop in real world <n>...
-
How to fetch Spark Application Id programmaticall while running the Spark Job? scala> spark.sparkContext.applicationId res124: String = l...
-
input data: ---------- customerID, itemID, amount 44,8602,37.19 35,5368,65.89 2,3391,40.64 47,6694,14.98 29,680,13.08 91,8900,24.59 ...
-
pattern matching is similar to switch statements in C#, Java no fall-through - at least one condition matched no breaks object PatternExa { ...
No comments:
Post a Comment