You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by Sven Resch <sv...@telus.net> on 2021/03/27 19:42:03 UTC

Running docker gremlin-server and console on Mac Apple M1

I'm looking to see if I can run the gremlin server and console on a new Mac
M1 that I just purchased. Running with the latest Docker Desktop for Mac
(RC2).

If I run with the --platform option I do not see any errors or warnings at
startup time.

Re: Running docker gremlin-server and console on Mac Apple M1

Posted by Stephen Mallette <sp...@gmail.com>.
I've never tried this on M1 so I'm not sure what to expect. Interesting
that docker won't work for you though, but I'm told our ubuntu:xenial base
is rather heavy. there was some discussion at some point to go with a
lighter version of linux but no one has picked up that work. i don't know
if that's your problem. as far as the native running of Gremln Console,
jansi is going to try to use "CLibrary for POSIX tty functions on Unix and
Windows" which might cause some trouble for M1??

On Sat, Mar 27, 2021 at 6:18 PM Sven Resch <sv...@telus.net> wrote:

> Sorry, I hit "Send" accidentally :-)
>
> Command:
>
> docker run --platform linux/amd64 -p 8182:8182 tinkerpop/gremlin-server
>
> Seems to pin a core pretty hard and so far I have not been able to connect.
>
> Connecting using the gremlin java console zip method...
>
> svenresch@Svens-M1 apache-tinkerpop-gremlin-console-3.4.10 %
> ./bin/gremlin.sh
>
> WARNING: An illegal reflective access operation has occurred
>
> WARNING: Illegal reflective access by
> org.codehaus.groovy.reflection.CachedClass
>
> (file:/Users/svenresch/Downloads/apache-tinkerpop-gremlin-console-3.4.10/lib/groovy-2.5.14-indy.jar)
> to method java.lang.Object.finalize()
>
> WARNING: Please consider reporting this to the maintainers of
> org.codehaus.groovy.reflection.CachedClass
>
> WARNING: Use --illegal-access=warn to enable warnings of further illegal
> reflective access operations
>
> WARNING: All illegal access operations will be denied in a future release
>
> Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not load
> library. Reasons: [no jansi in java.library.path:
> [/Users/svenresch/Library/Java/Extensions, /Library/Java/Extensions,
> /Network/Library/Java/Extensions, /System/Library/Java/Extensions,
> /usr/lib/java, .],
>
> /private/var/folders/2d/xk55f0sn66d69k5t38qkl0180000gn/T/libjansi-64-13732278686632823682.jnilib:
>
> dlopen(/private/var/folders/2d/xk55f0sn66d69k5t38qkl0180000gn/T/libjansi-64-13732278686632823682.jnilib,
> 1): no suitable image found.  Did find:
>
>
> /private/var/folders/2d/xk55f0sn66d69k5t38qkl0180000gn/T/libjansi-64-13732278686632823682.jnilib:
> no matching architecture in universal wrapper
>
>
> /private/var/folders/2d/xk55f0sn66d69k5t38qkl0180000gn/T/libjansi-64-13732278686632823682.jnilib:
> no matching architecture in universal wrapper]
> Tried various version of java compiled for M1/arm and for Intel/rosetta. No
> luck.
>
> Connecting using the gremlin-console Docker image:
>
> docker run --platform linux/amd64 tinkerpop/gremlin-console
>
> docker exec -it [CONTAINER_ID] /bin/bash
>
> bash-4.4$ ls
>
> bin   conf  data  ext   lib
>
> bash-4.4$ ls bin
>
> gremlin.bat  gremlin.sh   hadoop
>
> bash-4.4$ ./bin/gremlin.sh
>
> --> Hangs without error, another CPU core seems to get pinned.
>
> Anyone have luck getting gremlin running on an M1 and have any advice or
> pointers?
>
> Thx, Sven
>
> On Sat, Mar 27, 2021 at 12:42 PM Sven Resch <sv...@telus.net> wrote:
>
> > I'm looking to see if I can run the gremlin server and console on a new
> > Mac M1 that I just purchased. Running with the latest Docker Desktop for
> > Mac (RC2).
> >
> > If I run with the --platform option I do not see any errors or warnings
> at
> > startup time.
> >
> >
>

Re: Running docker gremlin-server and console on Mac Apple M1

Posted by Sven Resch <sv...@telus.net>.
Sorry, I hit "Send" accidentally :-)

Command:

docker run --platform linux/amd64 -p 8182:8182 tinkerpop/gremlin-server

Seems to pin a core pretty hard and so far I have not been able to connect.

Connecting using the gremlin java console zip method...

svenresch@Svens-M1 apache-tinkerpop-gremlin-console-3.4.10 %
./bin/gremlin.sh

WARNING: An illegal reflective access operation has occurred

WARNING: Illegal reflective access by
org.codehaus.groovy.reflection.CachedClass
(file:/Users/svenresch/Downloads/apache-tinkerpop-gremlin-console-3.4.10/lib/groovy-2.5.14-indy.jar)
to method java.lang.Object.finalize()

WARNING: Please consider reporting this to the maintainers of
org.codehaus.groovy.reflection.CachedClass

WARNING: Use --illegal-access=warn to enable warnings of further illegal
reflective access operations

WARNING: All illegal access operations will be denied in a future release

Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not load
library. Reasons: [no jansi in java.library.path:
[/Users/svenresch/Library/Java/Extensions, /Library/Java/Extensions,
/Network/Library/Java/Extensions, /System/Library/Java/Extensions,
/usr/lib/java, .],
/private/var/folders/2d/xk55f0sn66d69k5t38qkl0180000gn/T/libjansi-64-13732278686632823682.jnilib:
dlopen(/private/var/folders/2d/xk55f0sn66d69k5t38qkl0180000gn/T/libjansi-64-13732278686632823682.jnilib,
1): no suitable image found.  Did find:

/private/var/folders/2d/xk55f0sn66d69k5t38qkl0180000gn/T/libjansi-64-13732278686632823682.jnilib:
no matching architecture in universal wrapper

/private/var/folders/2d/xk55f0sn66d69k5t38qkl0180000gn/T/libjansi-64-13732278686632823682.jnilib:
no matching architecture in universal wrapper]
Tried various version of java compiled for M1/arm and for Intel/rosetta. No
luck.

Connecting using the gremlin-console Docker image:

docker run --platform linux/amd64 tinkerpop/gremlin-console

docker exec -it [CONTAINER_ID] /bin/bash

bash-4.4$ ls

bin   conf  data  ext   lib

bash-4.4$ ls bin

gremlin.bat  gremlin.sh   hadoop

bash-4.4$ ./bin/gremlin.sh

--> Hangs without error, another CPU core seems to get pinned.

Anyone have luck getting gremlin running on an M1 and have any advice or
pointers?

Thx, Sven

On Sat, Mar 27, 2021 at 12:42 PM Sven Resch <sv...@telus.net> wrote:

> I'm looking to see if I can run the gremlin server and console on a new
> Mac M1 that I just purchased. Running with the latest Docker Desktop for
> Mac (RC2).
>
> If I run with the --platform option I do not see any errors or warnings at
> startup time.
>
>

Re: Running docker gremlin-server and console on Mac Apple M1

Posted by Sven Resch <sv...@inqli.com>.
Latest update,

Haven't tried in some time. Now with the latest updates have found that gremlin-server now does work!! Very happy :-)

MacOS Big Sur v11.4
Docker Desktop v3.5.2.18
tinkerpop/gremlin-server v3.5.1

gremlin-console v3.5.1 however still appears to lock or otherwise become non-functional on start.

Regardless... progress!

Cheers, Sven

On 2021/03/27 19:42:03, Sven Resch <sv...@telus.net> wrote: 
> I'm looking to see if I can run the gremlin server and console on a new Mac
> M1 that I just purchased. Running with the latest Docker Desktop for Mac
> (RC2).
> 
> If I run with the --platform option I do not see any errors or warnings at
> startup time.
>