Featured Post

8 Ways to Optimize AWS Glue Jobs in a Nutshell

Image
  Improving the performance of AWS Glue jobs involves several strategies that target different aspects of the ETL (Extract, Transform, Load) process. Here are some key practices. 1. Optimize Job Scripts Partitioning : Ensure your data is properly partitioned. Partitioning divides your data into manageable chunks, allowing parallel processing and reducing the amount of data scanned. Filtering : Apply pushdown predicates to filter data early in the ETL process, reducing the amount of data processed downstream. Compression : Use compressed file formats (e.g., Parquet, ORC) for your data sources and sinks. These formats not only reduce storage costs but also improve I/O performance. Optimize Transformations : Minimize the number of transformations and actions in your script. Combine transformations where possible and use DataFrame APIs which are optimized for performance. 2. Use Appropriate Data Formats Parquet and ORC : These columnar formats are efficient for storage and querying, signif

Unix: How to Write Shell Script Using vi Editor

Unix Commands
Stockphotos.io
When you login into UNIX, you are first in the home directory:

$/home:

Then you can issue

$/home: cd jthomas

Then you come to your own directory:

$/home/jthomas:

How to write your first script:
$/home/jthomas: vi test.sh

Here, you can write your script.
The first line in the script is:

#!/bin/ksh - It denotes which shell you are going to use.

Example:

$vi test.sh

 #!/bin/ksh 
################################################### # 
Written By: Jason Thomas # Purpose: This script was written to show users 
how to develop their first script 
################################################### # Denotes a comment

root

daemon bin sys adm uucp nobody lpd

How to run a script

$ sh test.sh

Also read: The complete list of UNIX basic commands

Comments

Popular posts from this blog

How to Fix datetime Import Error in Python Quickly

How to Check Kafka Available Brokers

SQL Query: 3 Methods for Calculating Cumulative SUM