@@ -27,9 +27,7 @@ public class ElasticsearchNode : IDisposable
27
27
//{ "cloud-azure", _ => "cloud-azure" },
28
28
{ "mapper-attachments" , _ => "mapper-attachments" } ,
29
29
{ "mapper-murmur3" , _ => "mapper-murmur3" } ,
30
- { "license" , _ => "license" } ,
31
- { "graph" , _ => "graph" } ,
32
- { "shield" , _ => "shield" } ,
30
+ { "x-pack" , _ => "x-pack" } ,
33
31
} ;
34
32
private string [ ] DefaultNodeSettings { get ; }
35
33
@@ -131,8 +129,8 @@ bool shieldEnabled
131
129
$ "es.cluster.name={ this . ClusterName } ",
132
130
$ "es.node.name={ this . NodeName } ",
133
131
$ "es.path.repo={ this . RepositoryPath } ",
134
- $ "es.script.inline=on ",
135
- $ "es.script.indexed=on ",
132
+ $ "es.script.inline=true ",
133
+ $ "es.script.indexed=true ",
136
134
$ "es.node.{ attr } testingcluster=true",
137
135
$ "es.shield.enabled=" + ( shieldEnabled ? "true" : "false" )
138
136
} ;
@@ -421,7 +419,10 @@ private void EnsureShieldAdmin()
421
419
{
422
420
if ( ! this . _shieldEnabled ) return ;
423
421
424
- var pluginBat = Path . Combine ( this . RoamingClusterFolder , "bin" , "shield" , "esusers" ) + ".bat" ;
422
+ var folder = this . VersionInfo . ParsedVersion . Major >= 5 ? "x-pack" : "shield" ;
423
+ var plugin = this . VersionInfo . ParsedVersion . Major >= 5 ? "users" : "esusers" ;
424
+
425
+ var pluginBat = Path . Combine ( this . RoamingClusterFolder , "bin" , folder , plugin ) + ".bat" ;
425
426
foreach ( var cred in ShieldInformation . AllUsers )
426
427
{
427
428
var processInfo = new ProcessStartInfo
0 commit comments