Re: Ignite node log file setup

2020-07-03 Thread kay
Thank you so much!



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Ignite node log file setup

2020-07-02 Thread Ilya Kasnacheev
Hello!

"""
In Spring syntax it will be #{systemProperties['gridName']}:


"""

Regards,
-- 
Ilya Kasnacheev


ср, 1 июл. 2020 г. в 12:01, kay :

> Hello, I'm waiting for reply :)
>
> How can I set system property to use in ignite config file??
> I set and got a error so , attacted log file before..
>
> Thank you so much
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>


Re: Ignite node log file setup

2020-07-01 Thread kay
Hello, I'm waiting for reply :)

How can I set system property to use in ignite config file??
I set and got a error so , attacted log file before..

Thank you so much



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Ignite node log file setup

2020-06-10 Thread kay
Hello, 

I excute

 sh ./ignite.sh -J-DgridName=testCache1-1 -v ./config/testCache1-1.xml

and attachted whloe log file.

Thank you testCache1-1.out
  



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Ignite node log file setup

2020-06-10 Thread Andrei Aleksandrov

Hi,

Can you please attach the whole log file?

BR,
Andrei

6/9/2020 5:14 AM, kay пишет:

Hello!

I start up

sh ./ignite.sh -J-DgridName=testGridName -v ./config/config-cache.xml

and in config-cache.xml


but server start failed.

Is that not proper to set igniteInstanceName??

log is here
class org.apache.ignite.IgniteException: Failed to start manager:
GridManagerAdapter [enabled=true,
name=org.apache.ignite.internal.managers.communication.GridIoManager]
  at
org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:1067)
  at org.apache.ignite.Ignition.start(Ignition.java:349)
  at
org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:300)
  Caused by: class org.apache.ignite.IgniteCheckedException: Failed to start
manager: GridManagerAdapter [enabled=true,
name=org.apache.ignite.internal.managers.communication.GridIoManager]
  at
org.apache.ignite.internal.IgniteKernal.startManager(IgniteKernal.java:1965)
  at
org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:1173)
  at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:2038)
  at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1703)
  at
org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1117)
  at
org.apache.ignite.internal.IgnitionEx.startConfigurations(IgnitionEx.java:1035)
  at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:921)
  at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:820)
  at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:690)
  at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:659)
  at org.apache.ignite.Ignition.start(Ignition.java:346)
  ... 1 more
  Caused by: class org.apache.ignite.IgniteCheckedException: Failed to start
SPI: TcpCommunicationSpi [connectGate=null,
connPlc=org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi$FirstConnectionPolicy@6622fc65,
chConnPlc=org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi$4@299321e2,
enableForcibleNodeKill=false, enableTroubleshootingLog=false,
locAddr=42.1.188.128, locHost=intdev01/42.1.188.128, locPort=48722,
locPortRange=1, shmemPort=-1, directBuf=true, directSndBuf=false,
idleConnTimeout=60, connTimeout=5000, maxConnTimeout=60,
reconCnt=10, sockSndBuf=32768, sockRcvBuf=32768, msgQueueLimit=0,
slowClientQueueLimit=0, nioSrvr=GridNioServer [selectorSpins=0,
filterChain=FilterChain[filters=[GridNioCodecFilter
[parser=org.apache.ignite.internal.util.nio.GridDirectParser@2f17e30d,
directMode=true], GridConnectionBytesVerifyFilter], closed=false,
directBuf=true, tcpNoDelay=true, sockSndBuf=32768, sockRcvBuf=32768,
writeTimeout=2000, idleTimeout=60, skipWrite=false, skipRead=false,
locAddr=intdev01/42.1.188.128:48722, order=LITTLE_ENDIAN, sndQueueLimit=0,
directMode=true,
mreg=org.apache.ignite.internal.processors.metric.MetricRegistry@71cf1b07,
rcvdBytesCntMetric=org.apache.ignite.internal.processors.metric.impl.LongAdderMetric@a9be6fa5,
sentBytesCntMetric=org.apache.ignite.internal.processors.metric.impl.LongAdderMetric@489b09ce,
outboundMessagesQueueSizeMetric=org.apache.ignite.internal.processors.metric.impl.LongAdderMetric@69a257d1,
sslFilter=null, msgQueueLsnr=null, readerMoveCnt=0, writerMoveCnt=0,
readWriteSelectorsAssign=false], shmemSrv=null, usePairedConnections=false,
connectionsPerNode=1, tcpNoDelay=true, filterReachableAddresses=false,
ackSndThreshold=32, unackedMsgsBufSize=0, sockWriteTimeout=2000,
boundTcpPort=48722, boundTcpShmemPort=-1, selectorsCnt=8, selectorSpins=0,
addrRslvr=null,
ctxInitLatch=java.util.concurrent.CountDownLatch@181e731e[Count = 1],
stopping=false,
metricsLsnr=org.apache.ignite.spi.communication.tcp.TcpCommunicationMetricsListener@19648c40]
  at
org.apache.ignite.internal.managers.GridManagerAdapter.startSpi(GridManagerAdapter.java:300)
  at
org.apache.ignite.internal.managers.communication.GridIoManager.start(GridIoManager.java:435)
  at
org.apache.ignite.internal.IgniteKernal.startManager(IgniteKernal.java:1960)
  ... 11 more
  Caused by: class org.apache.ignite.spi.IgniteSpiException: Failed to
register SPI MBean: null
  at
org.apache.ignite.spi.IgniteSpiAdapter.registerMBean(IgniteSpiAdapter.java:421)
  at
org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi.spiStart(TcpCommunicationSpi.java:2397)
  at
org.apache.ignite.internal.managers.GridManagerAdapter.startSpi(GridManagerAdapter.java:297)
  ... 13 more
  Caused by: javax.management.MalformedObjectNameException: Invalid character
':' in value part of property
  at javax.management.ObjectName.construct(ObjectName.java:618)
  at javax.management.ObjectName.(ObjectName.java:1382)
  at
org.apache.ignite.internal.util.IgniteUtils.makeMBeanName(IgniteUtils.java:4719)
  

Re: Ignite node log file setup

2020-06-08 Thread kay
Hello!

I start up 

sh ./ignite.sh -J-DgridName=testGridName -v ./config/config-cache.xml

and in config-cache.xml 


but server start failed.

Is that not proper to set igniteInstanceName?? 

log is here 
class org.apache.ignite.IgniteException: Failed to start manager:
GridManagerAdapter [enabled=true,
name=org.apache.ignite.internal.managers.communication.GridIoManager]
 at
org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:1067)
 at org.apache.ignite.Ignition.start(Ignition.java:349)
 at
org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:300)
 Caused by: class org.apache.ignite.IgniteCheckedException: Failed to start
manager: GridManagerAdapter [enabled=true,
name=org.apache.ignite.internal.managers.communication.GridIoManager]
 at
org.apache.ignite.internal.IgniteKernal.startManager(IgniteKernal.java:1965)
 at
org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:1173)
 at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:2038)
 at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1703)
 at
org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1117)
 at
org.apache.ignite.internal.IgnitionEx.startConfigurations(IgnitionEx.java:1035)
 at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:921)
 at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:820)
 at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:690)
 at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:659)
 at org.apache.ignite.Ignition.start(Ignition.java:346)
 ... 1 more
 Caused by: class org.apache.ignite.IgniteCheckedException: Failed to start
SPI: TcpCommunicationSpi [connectGate=null,
connPlc=org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi$FirstConnectionPolicy@6622fc65,
chConnPlc=org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi$4@299321e2,
enableForcibleNodeKill=false, enableTroubleshootingLog=false,
locAddr=42.1.188.128, locHost=intdev01/42.1.188.128, locPort=48722,
locPortRange=1, shmemPort=-1, directBuf=true, directSndBuf=false,
idleConnTimeout=60, connTimeout=5000, maxConnTimeout=60,
reconCnt=10, sockSndBuf=32768, sockRcvBuf=32768, msgQueueLimit=0,
slowClientQueueLimit=0, nioSrvr=GridNioServer [selectorSpins=0,
filterChain=FilterChain[filters=[GridNioCodecFilter
[parser=org.apache.ignite.internal.util.nio.GridDirectParser@2f17e30d,
directMode=true], GridConnectionBytesVerifyFilter], closed=false,
directBuf=true, tcpNoDelay=true, sockSndBuf=32768, sockRcvBuf=32768,
writeTimeout=2000, idleTimeout=60, skipWrite=false, skipRead=false,
locAddr=intdev01/42.1.188.128:48722, order=LITTLE_ENDIAN, sndQueueLimit=0,
directMode=true,
mreg=org.apache.ignite.internal.processors.metric.MetricRegistry@71cf1b07,
rcvdBytesCntMetric=org.apache.ignite.internal.processors.metric.impl.LongAdderMetric@a9be6fa5,
sentBytesCntMetric=org.apache.ignite.internal.processors.metric.impl.LongAdderMetric@489b09ce,
outboundMessagesQueueSizeMetric=org.apache.ignite.internal.processors.metric.impl.LongAdderMetric@69a257d1,
sslFilter=null, msgQueueLsnr=null, readerMoveCnt=0, writerMoveCnt=0,
readWriteSelectorsAssign=false], shmemSrv=null, usePairedConnections=false,
connectionsPerNode=1, tcpNoDelay=true, filterReachableAddresses=false,
ackSndThreshold=32, unackedMsgsBufSize=0, sockWriteTimeout=2000,
boundTcpPort=48722, boundTcpShmemPort=-1, selectorsCnt=8, selectorSpins=0,
addrRslvr=null,
ctxInitLatch=java.util.concurrent.CountDownLatch@181e731e[Count = 1],
stopping=false,
metricsLsnr=org.apache.ignite.spi.communication.tcp.TcpCommunicationMetricsListener@19648c40]
 at
org.apache.ignite.internal.managers.GridManagerAdapter.startSpi(GridManagerAdapter.java:300)
 at
org.apache.ignite.internal.managers.communication.GridIoManager.start(GridIoManager.java:435)
 at
org.apache.ignite.internal.IgniteKernal.startManager(IgniteKernal.java:1960)
 ... 11 more
 Caused by: class org.apache.ignite.spi.IgniteSpiException: Failed to
register SPI MBean: null
 at
org.apache.ignite.spi.IgniteSpiAdapter.registerMBean(IgniteSpiAdapter.java:421)
 at
org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi.spiStart(TcpCommunicationSpi.java:2397)
 at
org.apache.ignite.internal.managers.GridManagerAdapter.startSpi(GridManagerAdapter.java:297)
 ... 13 more
 Caused by: javax.management.MalformedObjectNameException: Invalid character
':' in value part of property
 at javax.management.ObjectName.construct(ObjectName.java:618)
 at javax.management.ObjectName.(ObjectName.java:1382)
 at
org.apache.ignite.internal.util.IgniteUtils.makeMBeanName(IgniteUtils.java:4719)
 at
org.apache.ignite.internal.util.IgniteUtils.registerMBean(IgniteUtils.java:4788)
 at

Re: Ignite node log file setup

2020-06-08 Thread Ilya Kasnacheev
Hello!

${sys:} can use any system property which exists in the JVM.

If you put your gridName (or consistentId) into system property, you can
refer to it from both Ignite configuration (xml or otherwise) and log4j2
configuration.

Regards,
-- 
Ilya Kasnacheev


пн, 8 июн. 2020 г. в 04:55, kay :

> Hello, Thank you for reply.
>
> I know that I can put the 'cache-node-01' into the filename.
>
> But I wanna use only 1 log4j2.xml.
>
> If I use   fileName="${sys:IGNITE_HOME}/work/log/cache-node-01-${sys:nodeId}.log"
>
> like this, I should make log4j2.xml file each node.
> So I asked a question Is there any way to get gridName parameter in
> log4j2.xml like '${sys:nodeId}'
>
> ex) ${sys:gridName} or ${sys:igniteName}
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>


Re: Ignite node log file setup

2020-06-07 Thread kay
Hello, Thank you for reply.

I know that I can put the 'cache-node-01' into the filename.

But I wanna use only 1 log4j2.xml.

If I use  http://apache-ignite-users.70518.x6.nabble.com/


Re: Ignite node log file setup

2020-06-05 Thread akorensh
Hi,
   Update the file appender, and put cache-node-01 into the filename 
property as below.

   
   


Use env variables in your appenders, or re-config at run time as need
be.
 see: https://apacheignite.readme.io/docs/logging#log4j2

   You can also pro-grammatically create the log4j/logj2 config before
starting a grid, and put the grid name into the fileName property.

Thanks, Alex

  




--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/