I am building a casual cluster in AWS using the official Neo4j 4.0 enterprise AMI (ami-014f0e29bd8f8e168). After provisioning the EC2 instance I am unable to use the CLI tools.
ubuntu@ip-10-0-0-11:~$ sudo neo4j --version
Error: Could not find or load main class com.neo4j.server.enterprise.EnterpriseEntryPoint
Caused by: java.lang.ClassNotFoundException: com.neo4j.server.enterprise.EnterpriseEntryPoint
ubuntu@ip-10-0-0-11:~$ sudo neo4j-admin --version
WARNING: Max 1024 open files allowed, minimum of 40000 recommended. See the Neo4j manual.
Error: Could not find or load main class org.neo4j.cli.AdminTool
Caused by: java.lang.ClassNotFoundException: org.neo4j.cli.AdminTool
I rebuilt the instance using the latest Neo4j 3.5.8 enterprise AMI (ami-0e630224fe45f7c40) and it worked just fine.
ubuntu@ip-10-0-0-12:~$ sudo neo4j --version
neo4j 3.5.8
ubuntu@ip-10-0-0-12:~$ sudo neo4j-admin --version
WARNING: Max 1024 open files allowed, minimum of 40000 recommended. See the Neo4j manual.
neo4j-admin 3.5.8
Is there a change in the 4.0 AMIs that I'm not aware of? I looked in the documentation and it seems to indicate neo4j-admin, for example, should work.
Unless my information is faulty it looks like you do have a 4.0 AMI available. Check out ami-014f0e29bd8f8e168, which is named neo4j-enterprise-1-4.0.0-apoc 2020-01-20T01_40_02Z and is owned by account id 385155106615.
While that is the right account id for neo4j AMIs, to my knowledge this shouldn't be released yet. You may be using an image that is still being built out, I'd recommend not using this at the present time.
I've reached out for more info on this, I'll add more info when I get it.