Closed eayan closed 6 years ago
Hi @eayan
Can you please list the plugins you installed, your neo4j version and the configuration of the graphaware plugins. thx
Hi @ikwattro,
thank you so much for your interest and sorry for my late response due to my workload. Here are what you ask for:
Plugins: apoc-3.3.0.2 graphAlgorithms-3.3.2.0 graphware-nlp-3.3.3.52.7 graphware-server-enterprise-all-3.3.3.52 nlp-standfordnlp-3.3.52.7
Configurations:
#
dbms.unmanaged_extension_classes=com.graphaware.server=/graphaware com.graphaware.runtime.enabled=true com.graphaware.module.NLP.1=com.graphaware.nlp.module.NLPBootstrapper dbms.security.procedures.whitelist=ga.nlp.*
LOAD CSV
import files to be under the import
directory. Remove or comment it out toLOAD CSV
section of the manual for details.dbms.directories.import=import
dbms.security.auth_enabled=true
dbms.memory.heap.initial_size=512m dbms.memory.heap.max_size=1G
dbms.memory.pagecache.size=512m
dbms.connector.bolt.enabled=true
dbms.connector.bolt.listen_address=localhost:11009
dbms.connector.http.enabled=true dbms.connector.http.listen_address=localhost:11008
dbms.connector.https.enabled=true dbms.connector.https.listen_address=localhost:11010
#
#
#
#
#
#
#
#
#
dbms.security.auth_enabled=true
, and resides in logs/security.log
.#
####### Examples for "server_policies" plugin #######
#
#
#
#
#
ha.pull_interval=10
native
or ldap
auth providers,plugin
,plugin-<AUTH_PROVIDER_NAME>
.false
only failed authentication events will be logged, which<protocol>://<hostname>:<port>
, where hostname is the only required field.ldap
(default) and ldaps
.ldap
is 389 and for ldaps
636.ldaps://ldap.example.com:10389
.#
dbms.security.ldap.use_starttls
) instead of LDAPSldap
.follow
, ignore
or throw
.follow
automatically follows any referralsignore
ignores any referralsthrow
throws an exception, which will lead to authentication failuresimple
or a SASL mechanism supported by JNDI,DIGEST-MD5
. simple
is basic usernamedbms.security.auth_cache_ttl
).true
is that#
false
(default), the search for group membership will be performeddbms.security.auth_cache_ttl
,#
true
, the search will be performed using a special system account userdbms.security.ldap.authorization.system_username
anddbms.security.ldap.authorization.system_password
with this option.dbms.security.ldap.authorization.use_system_account
is true
.dbms.security.ldap.authentication.user_dn_template
will not be applied to this username,dbms.security.ldap.authorization.use_system_account
is true
.dbms.security.ldap.authentication.user_dn_template
.#
LOAD CSV
. Setting this value to false
will cause Neo4j to fail LOAD CSV
dbms.jvm.additional=-XX:+UseG1GC
dbms.jvm.additional=-XX:-OmitStackTraceInFastThrow
initmemory
is not only allocated, but committed todbms.jvm.additional=-XX:+AlwaysPreTouch
dbms.jvm.additional=-XX:+UnlockExperimentalVMOptions dbms.jvm.additional=-XX:+TrustFinalNonStaticFields
dbms.jvm.additional=-XX:+DisableExplicitGC
dbms.jvm.additional=-Djdk.tls.ephemeralDHKeySize=2048
dbms.jvm.additional=-Djdk.tls.rejectClientInitiatedRenegotiation=true
dbms.windows_service_name=neo4j
dbms.jvm.additional=-Dunsupported.dbms.udc.source=desktop
dbms.security.procedures.unrestricted=algo.,apoc. dbms.security.procedures.whitelist=algo.,apoc.
Neo4j Version: 3.3.3 Enterprise Neo4j Desktop (1.0.23)
Errors that I take:
Cypher: CALL ga.nlp.processor.addPipeline({textProcessor: 'com.graphaware.nlp.processor.stanford.StanfordTextProcessor', name: 'customStopWords', processingSteps: {tokenize: true, ner: true, dependency: false}, stopWords: '+,result, all, during', threadNumber: 20})
Neo.ClientError.Procedure.ProcedureNotFound
Neo.ClientError.Procedure.ProcedureNotFound: There is no procedure with the name ga.nlp.processor.addPipeline
registered for this database instance. Please ensure you've spelled the procedure name correctly and that the procedure is properly deployed.
Cypher: ga.nlp.processor.pipeline.default({name})
Neo.ClientError.Statement.SyntaxError: Invalid input 'g': expected
HI @eayan
You have two lines for the same setting :
In the beginning of your configuration file :
dbms.security.procedures.whitelist=ga.nlp.*
At the end of your configuration file :
dbms.security.procedures.whitelist=algo.,apoc.
You need only one line with this setting, also the last line is incorrect, so please remove one of them and keep only one with the following :
dbms.security.procedures.whitelist=algo.*,apoc.*,ga.*
Hi @ikwattro ,
thank your for your prompt response. I have adjusted the settings and got rid of the first error but I still have the second one:
Neo.ClientError.Statement.SyntaxError: Invalid input 'g': expected
Do I need to define {name} by myself for each pipeline? But the error is dealing with the "ga" there as far as I have seen. I have tried to hit it via "SET" or "CREATE" but it did not work.
Best...
@eayan No, you forgot to add CALL
in the beginning of the query for calling that procedure.
You will have to replace {name}
with the pipeline name you have created before.
That said, this is neo4j fundamentals, I suggest you follow some free courses available online and join the neo4j-slack community.
Cheers
@ikwattro What is the "pipeline name"?
"CALL ga.nlp.processor.addPipeline({textProcessor: 'com.graphaware.nlp.processor.stanford.StanfordTextProcessor', name: 'customStopWords', processingSteps: {tokenize: true, ner: true, dependency: false}, stopWords: '+,result, all, during', threadNumber: 20})"
I did not forget it actually, the original command does not have that "CALL" :) I am still taking fundamentals and following the group over slack. :)
Best..
customStopwords
On Tue, 17 Jul 2018 at 19:10, eayan notifications@github.com wrote:
@ikwattro https://github.com/ikwattro What is the "pipeline name"?
"CALL ga.nlp.processor.addPipeline({textProcessor: 'com.graphaware.nlp.processor.stanford.StanfordTextProcessor', name: 'customStopWords', processingSteps: {tokenize: true, ner: true, dependency: false}, stopWords: '+,result, all, during', threadNumber: 20})"
I did not forget it actually, the original command does not have that "CALL" :) I am still taking fundamentals and following the group over slack. :)
Best..
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/graphaware/neo4j-nlp/issues/103#issuecomment-405657061, or mute the thread https://github.com/notifications/unsubscribe-auth/ABKleU-7fNaSYizLioUFjjFmeppSIGfzks5uHhqYgaJpZM4VLViK .
-- Christophe Willemsen | Graph Aware Limited
Phone: +44 (0) 333 444 7274 <javascript:void(0);> | Mobile: +32 (0) 489 687 208 <javascript:void(0);> christophe@graphaware.com | @graph_aware | www.graphaware.com
Hi,
I have attempted to define the default pipeline via "ga.nlp.processor.pipeline.default({name})" but it comes up with the error of expected "INIT". How can I solve this problem?
Best...