Blog Archives
1 … 17 18 19 20 21 22 23 24 25 … 30

25: PySpark SQL With Common Table Expression (i.e. CTE)

This tutorial extends Getting started with Databricks. You can run these in the Databricks notebook.

Step 1: Login to Databricks notebook:
https://community.cloud.databricks.com/login.html.

Step 2: Create a CLUSTER and it will take a few minutes to come up.

…

Read more ›



26: Docker Tutorial: Apache Kafka install, create topic & publish message on Cloudera quickstart

This extends Docker Tutorial: BigData on Cloudera quickstart via Docker. Step 1: Run the container on a command line.

Add new user & add to sudoers Step 2: “-m” creates a home directory “/home/kafka”, and the new user will be added to “ … Read more ›...

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only. Register 80+ Free Java FAQs 80+ Free Big Data FAQs
Already a member? Log in here


27: Docker Tutorial: Apache Kafka with Java API on Cloudera quickstart

This requires 26: Docker Tutorial: Apache Kafka install, create topic & publish message on Cloudera quickstart. It is important that you continue from the previous tutorial. Add maven path to ~/.bash_profile Step 1: Maven is already in the quickstart/cloudera Docker image.

Modify so that “mvn” … Read more ›...

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only. Register 80+ Free Java FAQs 80+ Free Big Data FAQs
Already a member? Log in here


28: Docker Tutorial: Apache Spark streaming with Kafka in Java on Cloudera quickstart

This extends 27: Docker Tutorial: Apache Kafka with Java API on Cloudera quickstart Install Java 8 Step 1: Install Java 8.

JAVA_HOME Step 2: Set JAVA_HOME to Java 8 so that Maven uses Java 8. … Read more ›...

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only. Register 80+ Free Java FAQs 80+ Free Big Data FAQs
Already a member? Log in here


29: Docker Tutorial: Apache Kafka with Python 3 on Cloudera quickstart

Prerequisite: Docker is installed on your Windows or Mac, and you have a basic understanding of Docker. Docker tutorials step by step | Hadoop, Hive, Impala & Spark on Cloudera quickstart on Docker tutorials Step 1: Pull the modified image “gdancik/cloudera” … Read more ›...

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only. Register 80+ Free Java FAQs 80+ Free Big Data FAQs
Already a member? Log in here


3. Apache Pig: XPath for XML

This extends the tutorial 1. Apache Pig Getting started and 2. Apache Pig: Regex (Regular expressions).

Input Data

scores.xml in folder:/Users/arulk/projects representing marks of 4 students in 3 subjects:

Step 1: Start pig in local file system mode.

…

Read more ›



3. Understanding HBase (NoSQL) database basics in 7 steps

Extends Getting started with HBase. HBase is a NoSQL database. HBase is a columnar database. #1. In HBase, you create the Table & column-families “create” command to create a table with column families. You can later on use “ … Read more ›...

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only. Register 80+ Free Java FAQs 80+ Free Big Data FAQs
Already a member? Log in here


30: Docker Tutorial: Apache Spark streaming in Python 3 with Apache Kafka on Cloudera quickstart

This extends Docker Tutorial: Apache Kafka with Python 3 on Cloudera quickstart Step 1: Create the pyspark streaming code in python. driver.py

simple.py – receive messages from a topic

Build the .egg file Step 2: Create setup.py to build the .egg file, … Read more ›...

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only. Register 80+ Free Java FAQs 80+ Free Big Data FAQs
Already a member? Log in here


31: Docker Tutorial: Apache Spark streaming in Scala with Apache Kafka on Cloudera quickstart

This extends 27: Docker Tutorial: Apache Kafka with Java API on Cloudera quickstart. Pre-requisite: Java 8 & Kafka installed with the “MyTestTopic” as per the previous tutorials. Install scala & sbt We will install Scala 2.10.7 from “https://www.scala-lang.org/download/2.10.7.html” … Read more ›...

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only. Register 80+ Free Java FAQs 80+ Free Big Data FAQs
Already a member? Log in here


4. Setting up HBase with zookeeper to be used in Java via maven project

HBase is a NoSQL database used in Hadoop world to store “Big Data”. This extends Understanding HBase (NoSQL) database basics in 7 steps.

Step 1: Create a Maven based Java project

Step 2: Import the project into eclipse & modify the pom.xml file

to add Hadoop &

…

Read more ›



5. HBase atomic operations by examples

Step 1: Create an HBase table named “sequence_numbers” with one column-family “i”. You can create this via HBase shell.

Step 2: You can use the HBase API in Java to insert a new record via “assigCurrentValue()“, and perform atomic operations in “ … Read more ›...

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only. Register 80+ Free Java FAQs 80+ Free Big Data FAQs
Already a member? Log in here


8+ JMeter performance testing interview Q&As

Performance testing is an important process of any software development. You can bring this up yourself to many open-ended questions like — Tell me about yourself? What are some of your recent accomplishments that you are proud of? Setting up a performance/load test script is always the first step in...

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only. Register 80+ Free Java FAQs 80+ Free Big Data FAQs
Already a member? Log in here


Apache HTTPClient POST request sample code

This extends the Apache HTTPClient Tutorial to invoke RESTFul service with a POST request.

The pom.xml

The client using HttpClient & JAXBContext

The “JAXBContext” is from the Java 6 onwards. The sample code includes

1) Exception handling.

2) “BasicCredentialsProvider”

…

Read more ›



1 … 17 18 19 20 21 22 23 24 25 … 30

300+ Java Interview Questions - FAQs

Tutorials on Java & Big Data