Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request to have Linux ppc64le support for embedded-redis #71

Open
ArchaB opened this issue Jul 6, 2016 · 10 comments · May be fixed by #117
Open

Request to have Linux ppc64le support for embedded-redis #71

ArchaB opened this issue Jul 6, 2016 · 10 comments · May be fixed by #117

Comments

@ArchaB
Copy link

ArchaB commented Jul 6, 2016

Need to run presto-redis on ppc64le server. The tests currently fail connecting to the embedded redis-server.
As mentioned in git issue (prestodb/presto#5548), need to add binary to the embedded-redis for Linux ppc64le.

Any pointer would be helpful.

@kstyrc
Copy link
Owner

kstyrc commented Jul 19, 2016

Hi,

sure, doable. We'll need 3 things:

  1. Add the Architecture.PPC64 enum so we can specify:
RedisExecProvider customProvider = RedisExecProvider.defaultProvider()
  .override(OS.UNIX, Architecture.PPC64, "/path/to/unix/ppc64/redis")
  1. Modify method to detect PPC64 architecture for Unix/Linux in Java, see OSDetector. getUnixArchitecture(),
  2. Embedded default redis 2.8.19 binary for PPC64 within jar, @ArchaB can you provide a link to downloadable binary? See https://github.com/kstyrc/embedded-redis/tree/master/src/main/resources

Will provide code for 1) and 2). Can you help me with 3)? I cannot find redis binary for PPC64 on redis.io/download page.

@ArchaB
Copy link
Author

ArchaB commented Aug 29, 2016

@kstyrc , could not find the binaries in the mentioned link. For my testing I had installed the redis-server using the following commands on RHEL 7.2 PPC System

wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
make

@kstyrc
Copy link
Owner

kstyrc commented Sep 2, 2016

I would like to avoid compiling sources as part of running embedded-redis in test. So on my side I will try to add PPC64 architecture detection, so you could write smth like:

RedisExecProvider customProvider = RedisExecProvider.defaultProvider()
  .override(OS.UNIX, Architecture.PPC64, "/path/to/compiled/ppc64/redis")

But you would be responsible for providing compiled binary of redis for PPC64. What do you think?

@ArchaB Could you provide me with the output of the following command on PPC64?

> uname -m

@ArchaB
Copy link
Author

ArchaB commented Sep 8, 2016

@kstyrc

uname -m
ppc64le

@ArchaB
Copy link
Author

ArchaB commented Nov 21, 2016

@kstyrc
In your earlier response you mentioned "But you would be responsible for providing compiled binary of redis for PPC64. What do you think?"
Had a doubt on which redis server would this mean. Is this Redis Server/presto-redis

@ArchaB
Copy link
Author

ArchaB commented Dec 6, 2016

@kstyrc
In your earlier response you mentioned "But you would be responsible for providing compiled binary of redis for PPC64. What do you think?"
Had a doubt on which redis server would this mean. Is this Redis Server/presto-redis

@amitsadaphule
Copy link

@kstyrc I'm trying to fix the presto-redis tests for ppc64le. Does this repository contribute to https://repo.maven.apache.org/maven2/com/orange/redis-embedded/embedded-redis/0.6/embedded-redis-0.6.jar? I don't see the resemblance from the jar contents:

.
├── META-INF
│   ├── MANIFEST.MF
│   └── maven
│       └── com.orange.redis-embedded
│           └── embedded-redis
│               ├── pom.properties
│               └── pom.xml
└── redis
    ├── 2.8.5
    │   ├── linux
    │   │   └── redis-server
    │   └── macosx
    │       └── redis-server
    ├── 2.8.9
    │   ├── linux
    │   │   └── redis-server
    │   └── macosx
    │       └── redis-server
    └── embedded
        ├── RedisServer.class
        └── RedisServer$RedisServerEnum.class

@amitsadaphule
Copy link

Cc @gerrith3 @seth-priya

@amitsadaphule
Copy link

@kstyrc and @electrum I found out that presto is still using https://github.com/gbrd/embedded-redis and support for ppc64le in this repository never realized.

If both of you are still open to accepting the changes for adding ppc64le support, I'd like to work towards that here as well as on presto side. Please confirm. Thanks!

@amitsadaphule
Copy link

@kstyrc @turu could you please review this PR: #117

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants