Category Archives: Uncategorized

Moving files between windows host and virtualbox VM (CentOs)

Option 1: Before booting up CentOs, go to CentOs VM settings, specify a share folder. Then after logged in to CentOs, create a new directory for example /media/vboxshared and mount that drive using the command sudo mount -t vboxsf SHARENAME /media/vboxshared. Enter your password when it prompts for the password.

Option 2: Before booting up CentOs, add a new Network adapter and select ‘Bridged Adapter’. Then after logged in to CentOs, run the command ifconfig -a | more to get the ip address of that new network adapter. In Windows Host, use WinSCP or FileZilla to transfer the file to CentOs

Install Docker on Oracle Virtualbox CentOS 7

# cd /etc/yum.repos.d/
# wget http://yum.oracle.com/public-yum-ol7.repo
# vi public-yum-ol7.repo

[ol7_latest]
name=Oracle Linux $releasever Latest ($basearch)
baseurl=http://yum.oracle.com/repo/OracleLinux/OL7/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1

[ol7_UEKR4]
name=Latest Unbreakable Enterprise Kernel Release 4 for Oracle Linux $releasever ($basearch)
baseurl=http://yum.oracle.com/repo/OracleLinux/OL7/UEKR4/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1

[ol7_addons]
name=Oracle Linux $releasever Add ons ($basearch)
baseurl=http://yum.oracle.com/repo/OracleLinux/OL7/addons/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1

reference link
https://blogs.oracle.com/virtualization/install-docker-on-oracle-linux-7-v2

starting docker service 

# systemctl start docker
# systemctl enable docker
# yum install docker-engine

Install Elasticsearch on CentOs

Download and install the public signing key:

rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch

Installing from the RPM repositoryedit

Create a file called elasticsearch.repo in the /etc/yum.repos.d/ directory for RedHat based

distributions, or in the /etc/zypp/repos.d/ directory for OpenSuSE based distributions, containing:

[elasticsearch-6.x]
name=Elasticsearch repository for 6.x packages
baseurl=https://artifacts.elastic.co/packages/6.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md

install 5.x

[elasticsearch-5.x]
name=Elasticsearch repository for 5.x packages
baseurl=https://artifacts.elastic.co/packages/5.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md

 

And your repository is ready for use. You can now install Elasticsearch with one of the following commands:

sudo yum install elasticsearch 


installation output:


starting up and checking


test the status

Confluent platform quick start

https://docs.confluent.io/3.1.1/quickstart.html#quickstart

using the Oracle developer VM to start with (save time for Centos OS, etc)

 

Fix during the steps
1. Change the port of registry in the properties file

/etc/schema-registry/schema-registry.properties

(if the port 8081 is being used)

2. to start the avro producer, specify the registry url since the default port 8081 is changed

./usr/bin/kafka-avro-console-producer –broker-list localhost:9092 –topic test –property value.schema='{“type”:”record”,”name”:”myrecord”,”fields”:[{“name”:”f1″,”type”:”string”}]}’ –property schema.registry.url=http://localhost:8087

change the path accordingly for starting the zookeeper, kafka and registry

 ./bin/kafka-server-start ./etc/kafka/server.properties

to

 ./usr/bin/kafka-server-start ./etc/kafka/server.properties