Skip to main content

Posts

Lab - Running and Exploring Cloudera Quickstart VM

Lab - Running and Exploring Cloudera Quickstart VM Go to https://www.cloudera.com/downloads/quickstart_vms/5-13.html Select the Virtualization software (Virtual Box) and click GET IT NOW button. Fill out the form and accept the agreement to download the VM. Uncompress the zip file Doubleclick on the Cloudera-quickstart-vm-5.13.0-0-virtualbox file Review the suggested setting of the VM and click import When requested, unblock any features blocked by windows firewall. Open Terminal → Type hadoop version → press Enter. Note the version of hadoop. Maximise the virtual machine window. Double click on the cloudera’s home folder. Observe the workspace folder used by eclipse. Double click on the eclipse. Explore the workspace, note the number of Hadoop libraries available for you. Open firefox. Provides a quick access to Cloudera Live. In the Getting Started page, click on Start Tutorial → click Getting Started → click Tutorial Exercise ...

Cpp STL Map

Map Example 1 #include <iostream> #include <map> #include <string> using namespace std; int main() {        map < string , string > provinces = { { "ON" , "Ontario" },{ "BC" , "British Columbia" },{ "QC" , "Quebec" }};               cout << "Size of the map is " << provinces.size() << endl;        for ( auto && p : provinces)        {               cout << p.first << "\t" << p.second << endl;        }        system( "pause" );        return 0; } Example 2 #include <iostream> //#include <vector> //#include <list> //#inclu...

Cpp STL Set

The Standard Template Library Common Classes Set Example 1: Create a set that holds string values. Print the size. Using a for each loop print all the elements to the console screen. #include <iostream> #include <set> #include <string> using namespace std; int main() {        set < string > strList = { "john" , "Paul" , "Jesse" , "Patty" , "John" , "john" };        cout << "Size of the list is " << strList.size() << endl;        for ( auto && s : strList)        {               cout << s << endl;        }        system( "pause" );        return 0; }

Cpp STL List

The Standard Template Library Common Classes List Example 1: Create a list that holds string values. Print the size and first and last elements. Finally using a for each loop print all the elements to the console screen, #include <iostream> #include <list> #include <string> using namespace std; int main() {        list < string > strList = { "john" , "Paul" , "Jesse" , "Patty" };        cout << "Size of the list is " << strList.size() << endl;        cout << "The first item in the list is " << strList.front() << endl;        //The following are not allowed as list does not allow random access        //cout << "The second item in the list is " << strList[1] << endl; //using substring     ...

Cpp STL Vector

The Standard Template Library Common Classes Vector Example 1: Create a vector that holds string values. Print the size and first, second, third and last elements. Finally using a for each loop print all the elements to the console screen. #include <iostream> #include <vector> #include <string> using namespace std; int main() {        vector < string > strVector = { "john" , "Paul" , "Jesse" , "Patty" };        cout << "Size of the Vector is " << strVector.size() << endl;        cout << "The first item in the vector is " << strVector.front() << endl;        cout << "The second item in the vector is " << strVector [ 1 ] << endl; //using substring        cout << "The second item in the vector is " <...

Swing Lab 2

Swing Lab 2 1. In this lab, we will use IntelliJ Wysiwyg editor, to create an application as shown below: 2. Click File → New → Project. Click Next → Next → Enter “JavaCalculater as the project name → Click ‘Finish’. 3. Right click on the src folder → New → GUI Form. Enter CalcForm as Form name and click OK. 4. Select JPanel in the Component Tree. Make sure that the layout is set to GridLayoutManager. 5. Add component to JPanel as shown in the screenshot above. Set the properties of the JComponents as required. 6. Within the Calcform.java class create a main method() using the code given below: public static void main(String[] args) {   JFrame frame = new JFrame( "JavaCalc" );   frame.setContentPane( new CalcForm(). panelmain );   frame.setVisible( true );   frame.setSize( 400 , 300 );   frame.setDefaultCloseOperation(JFrame. EXIT_ON_CLOSE ); } 7. Run the program.  ...

Day 6 - Introduction to NoSQL Database and HBase

Topics: Introduction to NoSQL Database and HBase  Reading List Apache HBase Reference Guide -   http://hbase.apache.org/book. html Apache HBase Guide -  https://www.cloudera.com/ documentation/enterprise/ latest/topics/hbase.html How to create example tables in HBase -  http://gethue.com/hadoop- tutorial-how-to-create- example-tables-in-hbase/