Posts

Showing posts from September, 2015

Virtual Machines

Virtual Machines The virtual machine is a software simulation of a machine It can be acting like a physical machine. We can categories the virtual machines like, Hardware-based virtual machines Software-based virtual machines What is a Hardware-based virtual machine? Basically, all hardware based virtual machines are called hardware/ system based virtual machine. It's providing several logical systems on the same computer with strong isolation from each other. E.g:  KVM (Kernal-based Virtual Machine) for Linux and UNIX system VMware (http://www.vmware.com) Virtual box (www.virtualbox.org) Cloud Computing: Nowadays lot of hardware cloud computing providers. The main advantage of hardware-based cloud computing is effective utilization of hardware resources. What is a Software-based virtual machine? The all software based virtual machines are called Software/Application/Process based virtual machines. It's acting as runtime engine which is prov

Setup to execute Apache Spark in Cloudera

Image
Setup to execute Apache Spark in Cloudera Before proceeding the below steps, we should install the Cloudera and be using it by a VMware player. The Cloudera has included Hadoop, Spark, Java, Eclipse and all required libraries. Please refer my previous post to setup the Hadoop:                http://ranjithdroid.blogspot.com/2015/09/setup-for-mapreduce-program-with.html 1. Create a Maven project in eclipse 2. Edit the pom.xml with required spark dependencies. < dependencies >   < dependency >     < groupId > org.apache.spark </ groupId >     < artifactId > spark-core_2.10 </ artifactId >     < version > 1.2.0 </ version >   </ dependency > </ dependencies > < build >   < plugins >     < plugin >       < groupId > org.apache.maven.plugins </ groupId >       < artifactId > maven -compiler- plugin </ artifactId >       < versio

Setup a MapReduce Program in Cloudera

Image
Setup a MapReduce Program in Cloudera 1. Download the Cloudera VMWare from below URL      http://www.cloudera.com/content/cloudera/en/downloads/quickstart_vms/cdh-5-4-x.html     The downloaded Cloudera VMware has included  CentOS Hadoop setup (with all libraries) Java  Eclipse IDE 2. Download the VMware player to open downloaded Cloudera virtual machine( use this below         URL to download the VMware player)                                 https://www.vmware.com/products/player 3. Open the eclipse which is located on the desktop of our VM CentOS (The CentOS was loaded      by VMware player using Cloudera) 4. Create a new java project in eclipse (e.g: MapReduce)  5. Add all the Hadoop related dependency libraries need to be added to our project from below location  (You can add all libraries by using java build path, it can be achieved by right-clicking the project and go to java build path and add external jar in library tab)          

Setup Google developer console for an Android Map app

Image
Setup Google developer console for an Android Map app Go to developer console: https://console.developers.google.com Login with your Gmail account. Activate the Google Maps Android API v2 (you can enable any service for your account, for example, map service, youtube service.... etc). Register a public access key with the SSA-1 key, which is copied when we export our project into bin folder with debug-keystone (you can export in a different location with your existing keystone). Register an SSA key Define the below code chunk in manifest file. < permission android:name = "com.example.mapdemo.permission.MAPS_RECEIVE" android:protectionLevel = "signature" /> < uses-feature android:glEsVersion = "0x00020000" android:required = "true" /> < uses-permission android:name = "com.example.mapdemo.permission.MAPS_RECEIVE" /> < uses-permission android:name = &