Is there a way to dynamically define and register new Dgraphs in Endeca -


as far knowledge of endeca goes, time want add new dgraph definition in endeca configuration, have run initializeservices.sh set updated configuration on eac.

i wondering if there way can without running initalizeservices.sh (since lot more update list of dgraph registered in eac, , want prevent that).

i found command ./runcommand.sh --update-definition allows configuration changes dgraph, has been registered eac, if add new dgraph in config , run command fails below error:

[11.17.16 16:00:07] info: setting definition host 'mdexlivehost2'. [11.17.16 16:00:07] severe: caught exception while checking provisioning caused com.endeca.soleng.eac.toolkit.exception.eaccommunicationexception com.endeca.soleng.eac.toolkit.host.host setdefinition - caught exception while setting host definition. caused com.endeca.eac.client.provisioningfault sun.reflect.nativeconstructoraccessorimpl newinstance0 - null 

i can't find detailed logs of error being generated anywhere in platformservices logs further debug.

i could, see in request log /eac/provisioningservice gave http code of 500, leads me believe script trying find current configuration of mdexlivehost2 , unable find it.

edited add configuration for:

new host:

<host id="mdexlivehost2" hostname="${mdexlive.host2}" port="${mdexlive.eac.port}" usessl="false" />

new dgraph:

<dgraph id="dgraphlive2" host-id="mdexlivehost2" port="${dgraphlive1.port}"       post-startup-script="livedgraphpoststartup">     <properties>         <property name="restartgroup" value="a" />         <property name="updategroup" value="a" />         <property name="dgraphcontentgroup" value="live" />     </properties>     <log-dir>./logs/dgraphs/dgraphlive</log-dir>     <input-dir>./data/dgraphs/dgraphlive/dgraph_input</input-dir>     <update-dir>./data/dgraphs/dgraphlive/dgraph_input/updates</update-dir> </dgraph> 

edited add errors after manually adding host using eaccmd.sh

host definition file:

<host host-id="mdexlivehost2" host-name="172.18.0.7" port="9999" usessl="false"/> 

the host added (validated via describe-app)

$./eaccmd.sh describe-app --app myapp | grep mdexlivehost2 <host host-name="172.18.0.7" port="9999" host-id="mdexlivehost2" usessl="false">

but, running command error:

[11.18.16 11:00:58] info: updating provisioning host 'mdexlivehost2'. [11.18.16 11:00:58] info: host name of host 'mdexlivehost2' has changed 172.18.0.7 172.18.0.7 . components on host re-provisioned. [11.18.16 11:00:58] info: updating definition host 'mdexlivehost2'. [11.18.16 11:00:58] severe: caught exception while checking provisioning.  caused com.endeca.soleng.eac.toolkit.exception.eaccommunicationexception com.endeca.soleng.eac.toolkit.host.host updateeacdefinition - caught exception while updating host definition. caused com.endeca.eac.client.provisioningfault sun.reflect.nativeconstructoraccessorimpl newinstance0 - null 

if error made more verbose, might give help.

you not have run initializeservices.sh every configuration change make. when execute other scripts in control folder, first check if there configuration changes , apply these changes.

as far error concerned, suspect either didn't specify mdexlivehost2 in livedgraphcluster.xml or host did specify not reachable. verify configuration.

lastly approach dynamically add more dgraphs cluster not standard practice. when configure environment should load test using eneperf simulate load , create many dgraphs , hosts required. if adding more hosts , dgraphs dynamically, need ensure add them, dynamically, load balancer configuration well.


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -