Wednesday, January 29, 2020

How to Install Pip on CentOS 7



How to Install Pip on CentOS 7


To install pip on your CentOS machine, follow these steps:

1. Add the EPEL Repository
Pip is not available in CentOS 7 core repositories. To install pip we need to enable the EPEL repository:

sudo yum install epel-release

2. Install pip
Once the EPEL repository is enabled we can install pip and all of its dependencies with the following command:

sudo yum install python-pip

3. Verify Pip installation
To verify that the pip is installed correctly run the following command which will print the pip version:

pip --version

Monday, December 16, 2019

AWS ElasticSearch ?

What is AWS ElasticSearch?


Elasticsearch is a search engine based on the Lucene library. It provides a distributed, multitenant-capable full-text search engine with an HTTP web interface and schema-free JSON documents.
Amazon Elasticsearch Service is a fully managed service that makes it easy for you to deploy, secure, and run Elasticsearch cost-effectively at scale

Elasticsearch Commands:
create indexes
curl -XPUT --header 'Content-Type: application/json' https://search-easyaws-wdxsl2qnhulmfbttlougfbgdj4.us-east-1.es.amazonaws.com/samples/_doc/1 -d '{ "name" : "easy"}'

list all indexes
curl -X GET 'https://search-esayaws-t4owdr3ym7zfiszspj6tdp526e.us-east-1.es.amazonaws.com/_cat/indices?v'

Query using URL parameters
curl -X GET https://search-esayaws-t4owdr3ym7zfiszspj6tdp526e.us-east-1.es.amazonaws.com/samples/_search?q=school:Harvard

list all docs in index
curl -X GET 'https://search-esayaws-t4owdr3ym7zfiszspj6tdp526e.us-east-1.es.amazonaws.com/sample/_search'

Health Check
curl  'https://search-esayaws-t4owdr3ym7zfiszspj6tdp526e.us-east-1.es.amazonaws.com/_cat/health?v'

Get Indexes
curl  'https://search-esayaws-t4owdr3ym7zfiszspj6tdp526e.us-east-1.es.amazonaws.com/_cat/indices?v'


delete index
curl -X DELETE 'https://search-esayaws-t4owdr3ym7zfiszspj6tdp526e.us-east-1.es.amazonaws.com/samples'


Top ChatGPT Prompts for DevOps Engineers

  As a DevOps engineer, your role involves juggling complex tasks such as automation, infrastructure management, CI/CD pipelines, and troubl...