Is elasticsearch required for BB DC 4.6+?

We want update from BB DC to 4.0.4 to BB DC 4.8.6. We found inside of the documentation that BB DC 4.6+ comes with a new feature "elasticsearch".

Is it required to install elasticsearch or is it an optional feature which can be activated later?

2 answers

2 votes

Hi Thomas,

Elasticsearch is required in the sense that any search in Bitbucket Server (for repositories or code in those repositories) will not work unless Elasticsearch is installed and configured. If it's not, an error will be displayed to users when they try to search for repositories or code.

Best regards,

Christian

Premier Support Engineer
Atlassian

Thanks for this quick answer. But the installation chapter https://confluence.atlassian.com/bitbucketserver/install-and-configure-a-remote-elasticsearch-instance-815577748.html Is not very useful.

I do all the steps but the permission looks wrong. Which user/group must be assigned to the *elasticsearch* installation directory and its installed files?

/usr/share/elasticsearch/...

where must the folder /config/buckler created? I do it like this

/usr/share/elasticsearch/config/buckler as descibed inside of the document.

The logging output brings [2016-11-09 14:06:49,495][WARN ][com.atlassian.elasticsearch.buckler.config.BucklerConfig] Buckler config file missing, tried path: /etc/elasticsearch/buckler/buckler.yml

How can I tested that elasticsearch works well?

Hi Thomas,

For Bitbucket Data Center we don't bundle Elasticsearch with Bitbucket Server itself, and as such we're unfortunately not in a position to be able to provide instructions or advice on how to install and configure it. You can refer to the Elasticsearch documentation for details on how to install, set up and configure the product.

 

Cheers,

Christian

Premier Support Engineer

Atlassian

Hi Christan,

I understand your arguments, but elasticsearch provides only documenation for the newest version 5.0. We must install Version 2.3.4.

The Bitbucket interface definition inside of bitbucket.properties

#Connect your Elasticsearch instance to Bitbucket Server
plugin.search.elasticsearch.baseurl=http://localhost:9200/
plugin.search.elasticsearch.username=which user must named here ?
plugin.search.elasticsearch.password=is it PW of the application or the user?

is this all on the BB DC side?

Hi Thomas,

Elastic still provides documentation for version 2.3 at https://www.elastic.co/guide/en/elasticsearch/reference/2.3/setup.html.

From an architectural perspective Bitbucket Server pushes the data to Elasticsearch, so all you need to do is tell Bitbucket Server where the Elasticsearch server is located and what the credentials are that it should use to access it, and that's what you do in the bitbucket.properties file. The credentials to use are the ones you specify/create in the process of setting up Elasticsearch.

 

Cheers,

Christian

Premier Support Engineer

Atlassian

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

22,977 views 26 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you