[ 
https://issues.apache.org/jira/browse/IGNITE-28728?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dmitry Werner updated IGNITE-28728:
-----------------------------------
    Description: 
The website currently provides the following command to start the Docker 
container:
{code:java}
# Start a single-node cluster
docker run -d --name ignite-node \
  -p 10800:10800 -p 47100:47100 -p 47500:47500 \
  -e "CONFIG_URI=/opt/ignite/config/default-config.xml" \
  apacheignite/ignite:2.18.0{code}
See [https://ignite.apache.org/download/] Apache Ignite 2 -> Docker

I ran it locally and got the following error:
{code:java}
class org.apache.ignite.IgniteException: Spring XML configuration path is 
invalid: /opt/ignite/config/default-config.xml. Note that this path should be 
either absolute or a relative local file system path, relative to META-INF in 
classpath or valid URL to IGNITE_HOME.
        at 
org.apache.ignite.internal.util.CommonUtils.convertException(CommonUtils.java:2112)
        at org.apache.ignite.Ignition.start(Ignition.java:328)
        at 
org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:361)
Caused by: class org.apache.ignite.IgniteCheckedException: Spring XML 
configuration path is invalid: /opt/ignite/config/default-config.xml. Note that 
this path should be either absolute or a relative local file system path, 
relative to META-INF in classpath or valid URL to IGNITE_HOME.
        at 
org.apache.ignite.internal.util.IgniteUtils.resolveSpringUrl(IgniteUtils.java:2691)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:802)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:674)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:643)
        at org.apache.ignite.Ignition.start(Ignition.java:325)
        ... 1 more
Caused by: java.net.MalformedURLException: no protocol: 
/opt/ignite/config/default-config.xml
        at java.base/java.net.URL.<init>(Unknown Source)
        at java.base/java.net.URL.<init>(Unknown Source)
        at java.base/java.net.URL.<init>(Unknown Source)
        at 
org.apache.ignite.internal.util.IgniteUtils.resolveSpringUrl(IgniteUtils.java:2682)
        ... 5 more
Failed to start grid: Spring XML configuration path is invalid: 
/opt/ignite/config/default-config.xml. Note that this path should be either 
absolute or a relative local file system path, relative to META-INF in 
classpath or valid URL to IGNITE_HOME.{code}
The command that actually works is:
{code:java}
 # Start a single-node cluster
docker run -d --name ignite-node \
  -p 10800:10800 -p 47100:47100 -p 47500:47500 \
  -e "CONFIG_URI=/opt/ignite/apache-ignite/config/default-config.xml" \
  apacheignite/ignite:2.18.0{code}

  was:
The website currently provides the following command to start the Docker 
container:
{code:java}
# Start a single-node cluster
docker run -d --name ignite-node \
  -p 10800:10800 -p 47100:47100 -p 47500:47500 \
  -e "CONFIG_URI=/opt/ignite/config/default-config.xml" \
  apacheignite/ignite:2.18.0{code}
See [https://ignite.apache.org/download/] Apache Ignite 2 -> Docker

I ran it locally and got the following error:
{code:java}
Caused by: java.net.MalformedURLException: no protocol: 
/opt/ignite/config/default-config.xml {code}
The command that actually works is:
{code:java}
 # Start a single-node cluster
docker run -d --name ignite-node \
  -p 10800:10800 -p 47100:47100 -p 47500:47500 \
  -e "CONFIG_URI=/opt/ignite/apache-ignite/config/default-config.xml" \
  apacheignite/ignite:2.18.0{code}


> Fix the config path in the Docker run command
> ---------------------------------------------
>
>                 Key: IGNITE-28728
>                 URL: https://issues.apache.org/jira/browse/IGNITE-28728
>             Project: Ignite
>          Issue Type: Task
>          Components: documentation
>            Reporter: Dmitry Werner
>            Assignee: Dmitry Werner
>            Priority: Minor
>              Labels: ignite-2, ise
>             Fix For: 2.19
>
>
> The website currently provides the following command to start the Docker 
> container:
> {code:java}
> # Start a single-node cluster
> docker run -d --name ignite-node \
>   -p 10800:10800 -p 47100:47100 -p 47500:47500 \
>   -e "CONFIG_URI=/opt/ignite/config/default-config.xml" \
>   apacheignite/ignite:2.18.0{code}
> See [https://ignite.apache.org/download/] Apache Ignite 2 -> Docker
> I ran it locally and got the following error:
> {code:java}
> class org.apache.ignite.IgniteException: Spring XML configuration path is 
> invalid: /opt/ignite/config/default-config.xml. Note that this path should be 
> either absolute or a relative local file system path, relative to META-INF in 
> classpath or valid URL to IGNITE_HOME.
>       at 
> org.apache.ignite.internal.util.CommonUtils.convertException(CommonUtils.java:2112)
>       at org.apache.ignite.Ignition.start(Ignition.java:328)
>       at 
> org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:361)
> Caused by: class org.apache.ignite.IgniteCheckedException: Spring XML 
> configuration path is invalid: /opt/ignite/config/default-config.xml. Note 
> that this path should be either absolute or a relative local file system 
> path, relative to META-INF in classpath or valid URL to IGNITE_HOME.
>       at 
> org.apache.ignite.internal.util.IgniteUtils.resolveSpringUrl(IgniteUtils.java:2691)
>       at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:802)
>       at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:674)
>       at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:643)
>       at org.apache.ignite.Ignition.start(Ignition.java:325)
>       ... 1 more
> Caused by: java.net.MalformedURLException: no protocol: 
> /opt/ignite/config/default-config.xml
>       at java.base/java.net.URL.<init>(Unknown Source)
>       at java.base/java.net.URL.<init>(Unknown Source)
>       at java.base/java.net.URL.<init>(Unknown Source)
>       at 
> org.apache.ignite.internal.util.IgniteUtils.resolveSpringUrl(IgniteUtils.java:2682)
>       ... 5 more
> Failed to start grid: Spring XML configuration path is invalid: 
> /opt/ignite/config/default-config.xml. Note that this path should be either 
> absolute or a relative local file system path, relative to META-INF in 
> classpath or valid URL to IGNITE_HOME.{code}
> The command that actually works is:
> {code:java}
>  # Start a single-node cluster
> docker run -d --name ignite-node \
>   -p 10800:10800 -p 47100:47100 -p 47500:47500 \
>   -e "CONFIG_URI=/opt/ignite/apache-ignite/config/default-config.xml" \
>   apacheignite/ignite:2.18.0{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to