Deployment Architecture

Why are search head hosts unable to connect to master indexer?

scottj1y
Path Finder

I'm setting up some hosts to become a search head cluster to be joined with an indexer cluster. There are five hosts, one of which is going to be the Search Head cluster captain.

I've installed Splunk 6.5.2 on all of them and it's up and running with no errors. I'm now at the point of turning them into search heads and whether I use the CLI or from the Splunk Web UI, they all return the same error.

Could not contact master.  Check that the master is up, the master_uri=https://10.x.x.97:5500 and secret are specified correctly

But when I ran a netcat test on that port from each search head candidate to the master indexer and from the master indexer to each of the hosts it past every time

from each host to master

searchhead-001 Connection to 10.x.x.97 5500 port [tcp/fcp-addr-srvr1] succeeded!
searchhead-002 Connection to 10.x.x.97 5500 port [tcp/fcp-addr-srvr1] succeeded!
searchhead-004 Connection to 10.x.x.97 5500 port [tcp/fcp-addr-srvr1] succeeded!
searchhead-003 Connection to 10.x.x.97 5500 port [tcp/fcp-addr-srvr1] succeeded!


From Master to each host

Connection to 10.x.x.203 5500 port [tcp/fcp-addr-srvr1] succeeded!
Connection to 10.x.x.200 5500 port [tcp/fcp-addr-srvr1] succeeded!
Connection to 10.x.x.202 5500 port [tcp/fcp-addr-srvr1] succeeded!
Connection to 10.x.x.201 5500 port [tcp/fcp-addr-srvr1] succeeded!

When setting them up I've copied and pasted the URI and secret from a text file so I'm certain that I'm not mistyping either one.

The only one that has succeeded is the host that will be the search head captain and there's nothing different about it at all. I've even gone so far as to reimage each of the other hosts, reinstall RHEL 6.8.4, and reinstall and set up Splunk 6.5.2 but still am getting the same results.

What am I overlooking?

0 Karma
1 Solution

lycollicott
Motivator

Oh, in that case let's look at the command you used:

splunk edit cluster-config -mode searchhead -master_uri https://10.x.x.97:5500 -replication_port 8080 -secret <secret key -auth admin:<admin password>

If you're just trying to enable a simple single search head why have you included -replication_port 8080 ?

Try just this instead:

splunk edit cluster-config -mode searchhead -master_uri https://10.x.x.97:5500 -secret <secret key -auth admin:<admin password>

View solution in original post

0 Karma

lycollicott
Motivator

Oh, in that case let's look at the command you used:

splunk edit cluster-config -mode searchhead -master_uri https://10.x.x.97:5500 -replication_port 8080 -secret <secret key -auth admin:<admin password>

If you're just trying to enable a simple single search head why have you included -replication_port 8080 ?

Try just this instead:

splunk edit cluster-config -mode searchhead -master_uri https://10.x.x.97:5500 -secret <secret key -auth admin:<admin password>
0 Karma

scottj1y
Path Finder

Out of the box this didn't work (meaning with the state the hosts were already in), but when I deleted the Splunk installation and then tried the command it succeeded. Thanks for the help.

lycollicott
Motivator

Good stuff. I'm glad it's working for you.

0 Karma

scottj1y
Path Finder

Yes, I realized my initial post is not very clear. Although these hosts will eventually become a search head cluster, right now I'm merely trying to enable them as search heads and nothing else.

So the problem is, even as stand alone search heads I'm getting that error although one of the five hosts has no problem. All five hosts are otherwise identical in terms of set up and installed software. And, as you can see, there is no network connectivity problem either from the hosts to the master nor from the master to any of the hosts.

So I'm trying to figure out why they won't become search heads.

0 Karma

lycollicott
Motivator

I think you need to first do a splunk init shcluster-config and then a splunk bootstrap shcluster-captain.

Look at this documentation for the details (http://docs.splunk.com/Documentation/Splunk/6.5.2/DistSearch/SHCdeploymentoverview) and I think it will help you out.

0 Karma

lycollicott
Motivator

What did you run on the node to turn it into the captain? What is the command that is failing?

0 Karma

scottj1y
Path Finder

I haven't turned any node into anything as I wrote above. The only one that has succeeded is the host that will be the search captain.

I've only run the command to enable a host be a search head on any of them, i.e.,

splunk edit cluster-config -mode searchhead -master_uri https://10.x.x.97:5500 -replication_port 8080 -secret <secret key -auth admin:<admin password>
0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...