Elasticsearch curator in windows? - elasticsearch-curator

I have installed elasticsearch curator in my windows machine by default the location will be in C:\Users\username based on ESdoc.
But i didn't find any .curator files in that location?
May i know where it is stored?
Do i need python to execute curator?

Curator does not install any default files for you. You must build your own. You can create a curator.yml based on the example in the documentation. You can install this at C:\Users\username\.curator\curator.yml to have it be automatically picked up when you execute Curator.
Action files can also be created based on the examples in the documentation.
If you installed from the Windows Binary Zip package or the Windows MSI Installer for Curator, you do not need Python as it is bundled with those packages.

Related

Install Elasticsearch Service in Linux

We are developing a java (spring boot) based software which depends on Elasticsearch. Right now we integrate elasticsearch via maven (as artifact).
This version seems to be the same as the .zip / .tar.gz version from the elasticsearch website.
As I have noticed there is a service installer for windows (x86 as well as x64).
But it seems that there is no "service installer" for linux in this package. I can use "./bin/elasticsearch -d -p pid" and the corresponding "kill cat pid" command to start/stop elasticsearch but it would be nice to have some form of service installer in this package as well so that elasticsearch is started automatically after an OS reboot.
I know the necessary files for systemd and init.d systems exist (at least in the .deb and .rpm package versions) so I assume it is not such a big deal to have a service installer in the artifact/zip/tar.gz version as well.
Am I right or do I underestimate this issue?
If there are the init.d files already, all you need to do is create the shortcut in rc.3 or rc.5 folders. Using redhat distros you'd simply do:
$ sudo chkconfig elasticdaemonname on
But that's assuming it is a daemon. If not, you'll have to daemonize it yourself. There are various possibilities to do this and I'm ready to bet all of them are documented for elasticsearch. But you could look for daemonize for start.

How to upgrade MongoDB on Windows Server

How do you upgrade MongoDB on Windows server? Running the Windows installer for the new version only installs a new copy of MongoDB and ignores the existing copy.
Edit:
First start the cmd.exe in admin mode and cd to the location of the old installation, for standard installations:
cd C:\Program Files\MongoDB\Server\3.2\bin
Stop all applications, which are accessing mongodb, then enter
mongod --remove
Then install the new mongo db, copy the mongod.cfg file from 3.2 to 3.4 directory. When you had one, otherwise follow the installation instructions for setting up the new service. This update worked fine for me, all data available, I didn't need to use this features switched off.
I upgraded from version 3.6.0 to 3.6.2 just today and below are the steps involved:
Download the latest version from the [mongodb wesbite][1].
When downloading is complete, stop any running instance of mongodb by typing 'Ctrl+C' on the command console.
Run the installation file and it automatically installs the new version at the same path as the previous version (at C:\Program
Files\MongoDB\Server\3.6).
Start the database server by typing 'mongod'.
All previous databases will be accessible to you.
Windows MongoDB major version upgrade can be performed easily in-place , here i am describing the steps to upgrade MongoDB 4.2 to 4.4 with existing data directory. You can follow the same for any version upgrade.
We will use the Windows command prompt to perform all steps below:
For safety take a backup of existing DB, provide a path to backup them
cd C:\Program Files\MongoDB\Server\4.2\bin
mongodump -o D:\DB_backup
Stop all the application writes and shutdown the MongoDB service
type "services. msc" and hit Enter or press OK
Services -> MongoDB Server -> Right click & stop
Install the new MongoDB mongodb-windows-x86_64-enterprise-4.4.8-signed.msi file msi package by using GUI provide the old exixting directories. Meanwhile rename directory from 4.2 to 4.4
Data dir - D:\MongoDB\Server\4.4\data
Log dir - D:\MongoDB\Server\4.4\log\
This will replace all the bin files with older version ones and MongoDB will be started automatically.
Finally , move to the bin directory, run mongo.exe client and check the DB availablity
cd C:\Program Files\MongoDB\Server\4.4\bin
On windows pro.
It worked for me like below:
Install new version without uninstalling existing.
Stop the mongodb service.
Copy data folder from previous mongo to new mongo folder.
Repair new mongo installation.
Uninstall previous mongodb.

upgrade kura installation without losing configuration

I'm currently running Kura 1.1.1 on a beagle bone black running debian linux with some custom packages and some altered configuration.
I would like to upgrade to the latest Kura release without losing the configuration and packages.
How do you upgrade while maintaining the state of a kura installation?
AFAIK there is not an official way to do this yet.
You can backup the following files and include them again after upgrading:
data/snapshots/snapshot_14xxx.xml this is the file containing your bundles' configuration. Most recent changes have a higher timestamp.
kura/dpa.properties this files contains a list of deployed Deployment Packages, installed through web-ui or DEPLOY-V1 cloudlet.
*.dp the actual Deployment Packages installed.
If you manually added jars or edited start scripts, you must copy/edit them again
Depending on how you upgrade, you may or may not have the previous installation deleted. Shell script installer for example changes /opt/eclipse/kura/ symlink to the version it installs, without deleting the old one.

installing Chorus's GreenPlum on OSX

I am trying to install Chorus on OSX. So I need to install GreenPlum as described here. The doc says that I have to download the GreenPLum database and extract the greenplum-db-4.2.5.0.tar.gz tar file. So I went to the dedicated site [Pivotal][2]. This file provides some .bin file, but when I execute it I get the message Installer will only install on RedHat/CentOS x86_64. The execution of this file supposes that it provides the mentionned tar file.
So I deduce that I must get some OSX dedicated file, but the Pivotal documentation says that the tar file should be extracted (only in development mode). Perhaps I am running some wrong commands. Could someone help ?
Go to https://network.pivotal.io/products/pivotal-gpdb#files to get the actual installers you'll need for OSX. Be aware that the community edition may not support everything.

How do I manually install an old cygwin package?

A project I am working on requires an old version of SLAPD (the LDAP
server) and must run on Windows, hence I am using cygwin packages:
I've found a binary package of slapd version I need 2.2.x here:
http://www.mirrorservice.org/sites/sourceware.org/pub/cygwin/release/...
How do I manually install it in cygwin? It does not seem to be a package-manager file format (like an RPM or a Deb), but is there a tool to install it for me?
FYI, I'm operating behind a corporate firewall that prevents me from viewing the main cygwin site (including the documentation), so please nobody tell me to RTFM - I wish I could!
Thanks
If you need an older version, the Cygwin time machine might help. To use it, I had to invoke setup.exe from the command line, giving it the --no-verify/-X option and it still wouldn't let me downgrade the "cygwin" package itself but at least it is, albeit very slowly, allowing me to install the version I wanted to test as a parallel installation.
If you are using the cygwin package installer to install this package, usually if you select to view the full info and scroll to the package you need you will see some info about the version.
Now if you click on the version number you will see that it changes from the oldest in the repository to the current. If your repository has the version you need then just finish the wizard.
Some cygwin mirrors keep old package files, for example, http://mirror.isoc.org.il/pub/cygwin/
You can use Sonatype nexus to mirror an existing cygwin repository, but provide your own setup.ini .
Copy the already downloaded repo content to c:\progs\nexus\sonatype-work\nexus\storage\mirror.isoc.org.il-pub-cygwin\
Put your own setup.ini and setup.bz2 there.
Start setup.exe with --no-verify
Paste
http://localhost:8081/nexus/content/repositories/mirror.isoc.org.il-pub-cygwin/
into the mirror selection box and click "Add"

Resources