Python

Convert your hive output to Json format

Using CONCAT and string manipulation functions: SELECT CONCAT(‘{ “column1”: “‘, column1, ‘”, “column2”: “‘, column2, ‘”, “column3”: “‘, column3, ‘” }’) AS json_data FROM your_table; Using a custom UDF (User-Defined Function): If the built-in...

Basic difference between JAVA vs Python Vs Scala

Scala: Scala is a statically typed language, which means you need to declare the data type of the variables before using them. Scala provides functional programming constructs along with object-oriented programming concepts. Scala runs...

examples of transformations in PySpark

Here are some examples of transformations in PySpark: Map map(func) – Applies the given function to each element of the dataset and returns a new dataset with the results. For example: from pyspark.sql.functions import...

Configure Eclipse for Python 3+

Steps for configuring eclipse for python 3+ if you have not installed python, please install the python using the link Step:- 1 launch the eclipse   Eclipse Welcome Page   Step:2 Click on the...

Hello World Program in Different languages

The first and very simple program in any programming language is the “Hello World” program.  Hello World program is the first step for learning any programming language.  This post will teach you the Hello...

Python 3 Installation

How to Install Python on Windows: Step 1: Download Python (for version 3 & above) Open a browser and Goto the link Click on the Download Python <x.y.z> button. The below file will be...