Day: February 10, 2023

Introduction

As part of this section we will get into all important HDFS commands. Getting list of commands and help Creating directories and changing ownership Managing files and file permissions Controlling access using ACLs Overriding Properties HDFS usage and Metadata Commands Creating Snapshots Using CLI for administration We are deliberately not sharing command snippets here for …

Introduction Read More »

Tuples

Let us see tuples in detail A tuple is another data structure in Scala It can hold heterogeneous elements Syntax for tuple val t = (1, “Hello World”) Another syntax for tuple val t: (Int, String) = (1, “Hello World”) Tuple has a handful of methods Elements of tuples can be accessed using _ notation (t._1 will return 1 and t._2 return Hello …

Tuples Read More »

Basic I/O Operations and using Scala Collections APIs

As part of this topic, we will explore Basic I/O operations Read data from files Convert into collection Perform collection operation to preview the data Run map-reduce operations Reading data from files To read files from a file system in scala there is a package called scala.io In scala.io we have a package named Source which …

Basic I/O Operations and using Scala Collections APIs Read More »