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

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


The following commit(s) were added to refs/heads/master by this push:
     new 78e6f6f  Updated Javascript Affinity config docs (#7441)
78e6f6f is described below

commit 78e6f6fb38ea6ec13eb568d0b02d2c22947b021c
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 51b206b..cda5669 100644
--- a/docs/content/configuration/index.md
+++ b/docs/content/configuration/index.md
@@ -1064,7 +1064,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