GithubHelp home page GithubHelp logo

Comments (2)

cgtz avatar cgtz commented on August 16, 2024

Hi @salamehsameera,

I will try this out on my windows machine later today, but could you try changing the paths to start with D:/ instead of /d/ (assuming D is the drive name)? Also, you may want to try removing the drive specifier (e.g. /users/sameeras/ambry2/config/log4j.properties instead)

from ambry.

salamehsameera avatar salamehsameera commented on August 16, 2024

Thanks @cgtz, I tried both and it did not work out unfortunately, here's the log output:
1.

sameeras@LT-260-PTH-6124 MINGW64 ~/ambry2/target (master)
$ nohup java -Dlog4j.configuration=file:D:/users/sameeras/ambry2/config/log4j.properties -jar ambry.jar --serverPropsFilePath D:/users/sameeras/ambry2/config/server.properties --hardwareLayoutFilePath D:/users/sameeras/ambry2/config/HardwareLayout.json --partitionLayoutFilePath D:/users/sameeras/ambry2/config/PartitionLayout.json > logs/server.log &
[1] 1425
nohup: ignoring input and redirecting stderr to stdout

sameeras@LT-260-PTH-6124 MINGW64 ~/ambry2/target (master)
$ cat logs/server.log
[2021-03-18 21:20:05,280] ERROR Exception during bootstrap of AmbryServer (com.github.ambry.server.AmbryMain)
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.github.ambry.utils.Utils.getObj(Utils.java:662)
at com.github.ambry.server.AmbryMain.main(AmbryMain.java:45)
Caused by: java.lang.IllegalStateException: Mount path has to be an absolute path.
at com.github.ambry.clustermap.Disk.validateMountPath(Disk.java:128)
at com.github.ambry.clustermap.Disk.validate(Disk.java:135)
at com.github.ambry.clustermap.Disk.(Disk.java:58)
at com.github.ambry.clustermap.DataNode.(DataNode.java:78)
at com.github.ambry.clustermap.Datacenter.(Datacenter.java:53)
at com.github.ambry.clustermap.HardwareLayout.(HardwareLayout.java:58)
at com.github.ambry.clustermap.StaticClusterAgentsFactory.(StaticClusterAgentsFactory.java:58)
... 6 more
[2021-03-18 21:20:05,285] INFO Exiting AmbryMain (com.github.ambry.server.AmbryMain)
[1]+ Exit 1 nohup java -Dlog4j.configuration=file:D:/users/sameeras/ambry2/config/log4j.properties -jar ambry.jar --serverPropsFilePath D:/users/sameeras/ambry2/config/server.properties --hardwareLayoutFilePath D:/users/sameeras/ambry2/config/HardwareLayout.json --partitionLayoutFilePath D:/users/sameeras/ambry2/config/PartitionLayout.json > logs/server.log

sameeras@LT-260-PTH-6124 MINGW64 ~/ambry2/target (master)
$ nohup java -Dlog4j.configuration=file:/users/sameeras/ambry2/config/log4j.properties -jar ambry.jar --serverPropsFilePath /users/sameeras/ambry2/config/server.properties --hardwareLayoutFilePath /users/sameeras/ambry2/config/HardwareLayout.json --partitionLayoutFilePath /users/sameeras/ambry2/config/PartitionLayout.json > logs/server.log &
[1] 1443
nohup: ignoring input and redirecting stderr to stdout

sameeras@LT-260-PTH-6124 MINGW64 ~/ambry2/target (master)
$ cat logs/server.log
[2021-03-18 21:21:17,432] ERROR Exception during bootstrap of AmbryServer (com.github.ambry.server.AmbryMain)
java.io.FileNotFoundException: C:\Program Files\Git\users\sameeras\ambry2\config\server.properties (The system cannot find the path specified)
at java.base/java.io.FileInputStream.open0(Native Method)
at java.base/java.io.FileInputStream.open(Unknown Source)
at java.base/java.io.FileInputStream.(Unknown Source)
at java.base/java.io.FileInputStream.(Unknown Source)
at com.github.ambry.utils.Utils.loadProps(Utils.java:782)
at com.github.ambry.server.AmbryMain.main(AmbryMain.java:40)
[2021-03-18 21:21:17,434] INFO Exiting AmbryMain (com.github.ambry.server.AmbryMain)
[1]+ Exit 1 nohup java -Dlog4j.configuration=file:/users/sameeras/ambry2/config/log4j.properties -jar ambry.jar --serverPropsFilePath /users/sameeras/ambry2/config/server.properties --hardwareLayoutFilePath /users/sameeras/ambry2/config/HardwareLayout.json --partitionLayoutFilePath /users/sameeras/ambry2/config/PartitionLayout.json > logs/server.log

from ambry.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.