This is an automated email from the ASF dual-hosted git repository.

cwylie pushed a commit to branch 0.14.1-incubating
in repository https://gitbox.apache.org/repos/asf/incubator-druid.git

commit 5a89fd056afb24ebe2855b2c423882777a5b97a3
Author: Benjamin Hopp <[email protected]>
AuthorDate: Wed Apr 10 21:44:50 2019 -0700

    Updated Javascript Affinity config docs (#7441)
    
    Updated with hostname:port rather than IP Address.
---
 docs/content/configuration/index.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/content/configuration/index.md 
b/docs/content/configuration/index.md
index dcf890a..15a8c30 100644
--- a/docs/content/configuration/index.md
+++ b/docs/content/configuration/index.md
@@ -1061,7 +1061,7 @@ Example: a function that sends batch_index_task to 
workers 10.0.0.1 and 10.0.0.2
 ```
 {
 "type":"javascript",
-"function":"function (config, zkWorkers, task) {\nvar batch_workers = new 
java.util.ArrayList();\nbatch_workers.add(\"10.0.0.1\");\nbatch_workers.add(\"10.0.0.2\");\nworkers
 = zkWorkers.keySet().toArray();\nvar sortedWorkers = new Array()\n;for(var i = 
0; i < workers.length; i++){\n sortedWorkers[i] = 
workers[i];\n}\nArray.prototype.sort.call(sortedWorkers,function(a, b){return 
zkWorkers.get(b).getCurrCapacityUsed() - 
zkWorkers.get(a).getCurrCapacityUsed();});\nvar minWorkerVer = config. [...]
+"function":"function (config, zkWorkers, task) {\nvar batch_workers = new 
java.util.ArrayList();\nbatch_workers.add(\"middleManager1_hostname:8091\");\nbatch_workers.add(\"middleManager2_hostname:8091\");\nworkers
 = zkWorkers.keySet().toArray();\nvar sortedWorkers = new Array()\n;for(var i = 
0; i < workers.length; i++){\n sortedWorkers[i] = 
workers[i];\n}\nArray.prototype.sort.call(sortedWorkers,function(a, b){return 
zkWorkers.get(b).getCurrCapacityUsed() - zkWorkers.get(a).getCurrCapaci [...]
 }
 ```
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to