Posts

Elasticsearch cannot restore existing snapshot. Blob not found

Image
up vote 0 down vote favorite Elasticsearch version: 6.3.2 I was trying to restore an old snapshot (taken in January 2018) of Elasticsearch 5.2.2 from a read only S3 repository. The necessary permissions in the IAM role for the instance are setup. Here is the repository definition: ``` { "production_copy_old": { "type": "s3", "settings": { "bucket": "elasticsearch-snapshot", "readonly": "true", "base_path": "snaps//" } } } ``` The repository is setup well, because when I issue the GET snapshot on the repository, I get the right response: GET _snapshot/production_copy_old/elasticsearch-snapshot-201804190000 { "snapshots": [ { "snapshot...

Specific CSV Read Filtering

Image
up vote 0 down vote favorite I am pretty new to Python, so I am possibly looking over an easy solution, but everything I have tried thus far has been fruitless. I have hundreds of CSV files with identical format. The format I have is --Name of File (unimportant) --Single Number Value (unimportant) -- Important Row of Column Names --Two More Rows of Unimportant Formatting Garbage -- Thousands of Rows of Important Data --Several Blank Rows --Thousands of Rows of Unimportant Garbage Again I need to format it so that I am able to easily grab the Column Names and the Important Data underneath. The format is set so that the column names are always on row 5 and that the data always starts on row 8, but the amount of data can very from several hundred to several thousand. EDIT: I got the exact row number of the heading w...