Security Setup

classic Classic list List threaded Threaded
2 messages Options
Skollur Skollur
Reply | Threaded
Open this post in threaded view
|

Security Setup

I am trying to setup basic login and password. I have coded as below but
getting an error as in the Ignite documentation.

        IgniteConfiguration cfg = new IgniteConfiguration();
        // Ignite persistence configuration.
        DataStorageConfiguration storageCfg = new
DataStorageConfiguration();
        // Enabling the persistence.
       
storageCfg.getDefaultDataRegionConfiguration().setPersistenceEnabled(true);
        // Applying settings.
        cfg.setDataStorageConfiguration(storageCfg);
        // Enable authentication
        cfg.setAuthenticationEnabled(true);
===========
12:20:25,012][SEVERE][main][IgniteKernal%idb] Exception during start
processors, node will be stopped and close connections
class org.apache.ignite.IgniteCheckedException: Failed to start processor:
GridProcessorAdapter []
        at
org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1742)
        at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:995)
        at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:2014)
        at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1723)
        at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1151)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:671)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:596)
        at org.apache.ignite.Ignition.start(Ignition.java:327)
        at
com.idb.cache.init.ServerNodeCodeStartup.main(ServerNodeCodeStartup.java:15)
Caused by: class org.apache.ignite.IgniteCheckedException: Reading
marshaller mapping from file com failed; last symbol of file name is
expected to be numeric.
        at
org.apache.ignite.internal.MarshallerMappingFileStore.getPlatformId(MarshallerMappingFileStore.java:223)
        at
org.apache.ignite.internal.MarshallerMappingFileStore.restoreMappings(MarshallerMappingFileStore.java:164)
        at
org.apache.ignite.internal.MarshallerContextImpl.onMarshallerProcessorStarted(MarshallerContextImpl.java:539)
        at
org.apache.ignite.internal.processors.marshaller.GridMarshallerMappingProcessor.start(GridMarshallerMappingProcessor.java:114)
        at
org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1739)
        ... 8 more
Caused by: java.lang.NumberFormatException: For input string: "m"
        at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
        at java.lang.Integer.parseInt(Integer.java:580)
        at java.lang.Byte.parseByte(Byte.java:149)
        at java.lang.Byte.parseByte(Byte.java:175)
        at
org.apache.ignite.internal.MarshallerMappingFileStore.getPlatformId(MarshallerMappingFileStore.java:220)



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
ilya.kasnacheev ilya.kasnacheev
Reply | Threaded
Open this post in threaded view
|

Re: Security Setup

Hello!

You seem to have some extra files in work/marshaller directory. Can you try clearing it up?

Regards,
--
Ilya Kasnacheev


пн, 5 нояб. 2018 г. в 20:54, Skollur <[hidden email]>:
I am trying to setup basic login and password. I have coded as below but
getting an error as in the Ignite documentation.

        IgniteConfiguration cfg = new IgniteConfiguration();
        // Ignite persistence configuration.
        DataStorageConfiguration storageCfg = new
DataStorageConfiguration();
        // Enabling the persistence.

storageCfg.getDefaultDataRegionConfiguration().setPersistenceEnabled(true);
        // Applying settings.
        cfg.setDataStorageConfiguration(storageCfg);
        // Enable authentication
        cfg.setAuthenticationEnabled(true);
===========
12:20:25,012][SEVERE][main][IgniteKernal%idb] Exception during start
processors, node will be stopped and close connections
class org.apache.ignite.IgniteCheckedException: Failed to start processor:
GridProcessorAdapter []
        at
org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1742)
        at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:995)
        at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:2014)
        at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1723)
        at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1151)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:671)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:596)
        at org.apache.ignite.Ignition.start(Ignition.java:327)
        at
com.idb.cache.init.ServerNodeCodeStartup.main(ServerNodeCodeStartup.java:15)
Caused by: class org.apache.ignite.IgniteCheckedException: Reading
marshaller mapping from file com failed; last symbol of file name is
expected to be numeric.
        at
org.apache.ignite.internal.MarshallerMappingFileStore.getPlatformId(MarshallerMappingFileStore.java:223)
        at
org.apache.ignite.internal.MarshallerMappingFileStore.restoreMappings(MarshallerMappingFileStore.java:164)
        at
org.apache.ignite.internal.MarshallerContextImpl.onMarshallerProcessorStarted(MarshallerContextImpl.java:539)
        at
org.apache.ignite.internal.processors.marshaller.GridMarshallerMappingProcessor.start(GridMarshallerMappingProcessor.java:114)
        at
org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1739)
        ... 8 more
Caused by: java.lang.NumberFormatException: For input string: "m"
        at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
        at java.lang.Integer.parseInt(Integer.java:580)
        at java.lang.Byte.parseByte(Byte.java:149)
        at java.lang.Byte.parseByte(Byte.java:175)
        at
org.apache.ignite.internal.MarshallerMappingFileStore.getPlatformId(MarshallerMappingFileStore.java:220)



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