Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Is elasticsearch required for BB DC 4.6+?

Thomas Beck November 9, 2016

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
Christian Glockner
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 9, 2016

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

0 votes
Thomas Beck November 9, 2016

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?

Christian Glockner
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 9, 2016

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

Thomas Beck November 9, 2016

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?

Christian Glockner
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 9, 2016

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
TAGS
AUG Leaders

Atlassian Community Events