Skip to content

Commit

Permalink
Hopefully fixed UT
Browse files Browse the repository at this point in the history
  • Loading branch information
cgivre committed Aug 26, 2024
1 parent 8bfa90f commit 0457952
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,17 @@ public static void initSplunk() throws Exception {
startCluster(builder);

splunk.start();
splunk.execInContainer("if ! sudo grep -q 'minFileSize' /opt/splunk/etc/system/local/server.conf; then " +
"sudo chmod a+w /opt/splunk/etc/system/local/server.conf; " +
"sudo echo \"# disk usage processor settings\" >> /opt/splunk/etc/system/local/server.conf; " +
"sudo echo \"[diskUsage]\" >> /opt/splunk/etc/system/local/server.conf; " +
"sudo echo \"minFreeSpace = 2000\" >> /opt/splunk/etc/system/local/server.conf; " +
"sudo echo \"pollingFrequency = 100000\" >> /opt/splunk/etc/system/local/server.conf; " +
"sudo echo \"pollingTimerFrequency = 10\" >> /opt/splunk/etc/system/local/server.conf; " +
"sudo chmod 600 /opt/splunk/etc/system/local/server.conf; " +
"sudo /opt/splunk/bin/splunk restart; " +
"fi");

String hostname = splunk.getHost();
Integer port = splunk.getFirstMappedPort();
StoragePluginRegistry pluginRegistry = cluster.drillbit().getContext().getStorage();
Expand Down

0 comments on commit 0457952

Please sign in to comment.