Get knowledge about new updates in IT, programming languages, programming best practices, software architecture designs, data structures, cloud services platforms like AWS, databases etc.
Introduction Rclone is a very good command line tool to move files and directories to and from cloud storage. In this post, I will explain the steps involved in setting up of rclone on mac machine and using it for syncing the files from a free ftp server to AWS S3 bucket Steps Install rclone command line Create source remote(ftp server) Create destination remote(AWS S3 bucket) Use rclone command to sync file from source remote(ftp server) to destination remote(AWS S3 bucket). Installation of rclone Use curl command to install rclone on mac machine curl https://rclone.org/install.sh | sudo bash Create source remote Here source is ftp server, so a remote needs to be created with ftp configuration. Use command rclone config Follow the instructions and opt FTP when you get option to select storage. Use 'speedtest.tele2.net' as host, 'anonymous' for user and password can be anything. Create destination remote Destination remote is AWS S3 bucket. Fo...
Before 15 August 2019, it was very difficult to debug and do root cause analysis of an unresponsive or unreachable AWS EC2 instance. Generally, the operating system gets crashed and rebooted when a kernel panic(in case of Linux) or stop error(in case of Windows) is triggered. The operating system can be configured to perform diagnostics tasks on kernel panic or stop error such as generating memory dump files for root cause analysis and debugging. On 15 August 2019, Amazon introduced a simple API to trigger a kernel panic by sending diagnostic Interrupt to an unresponsive instance, which in turn can direct the operating system to perform tasks like creating a crash dump, loading the secondary kernel, or obtaining a call trace. Some concepts about operating system interrupt An interrupt in the operating system is the highest priority signal send from hardware or software to the processor to process. There are two types of interrupts that occur in the op...
Before going into details of how to use Athena service to query S3 bucket, let me introduce you all about what AWS Athena is actually. What is AWS Athena? Athena is query service which uses standard SQL to fetch data from s3 bucket. Use case Suppose there are 3 files stored in s3 bucket (athena-sample-bucket) samplefile1.log.gz(1gb) samplefile2.log.gz(700mb) samplefile3.log.gz600mb Each log.gz file mentioned above has log data in CSV structure with comma-separated fields. Now, what will we do if we want to get data record which belongs to one of the files in s3 bucket? Approach 1 Read each file in s3 bucket and write logic to search the record which we want to fetch. This approach is slow and complex. Approach 2 Use AWS Athena service to query required record from s3 bucket. Athena uses standard SQL. Let's use Athena step by step Goto services section of AWS website and search for Athena. Select Athena service from the search result. This is how i...
Comments
Post a Comment