Skip to content

Failed to get local hostname java.net.UnknownHostException: centos-ami: centos-ami: Name or service not known #7

Open
@pentium10

Description

@pentium10
[root@centos-ami riak-data-migrator-0.2.5]# ../jdk1.7.0_51/bin/java -jar riak-data-migrator-0.2.5.jar -h 10.46.100.10 -p 8081 -H 8071 -r ~ -b products -d
Destination PB Port not specified, using the default: 8087
09:38:53,941 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
09:38:53,941 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
09:38:53,942 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/root/riak-data-migrator-0.2.5/conf/logback.xml]
09:38:54,362 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
09:38:54,480 |-ERROR in ch.qos.logback.core.util.ContextUtil@64cf5b3 - Failed to get local hostname java.net.UnknownHostException: centos-ami: centos-ami: Name or service not known
        at java.net.UnknownHostException: centos-ami: centos-ami: Name or service not known
        at      at java.net.InetAddress.getLocalHost(InetAddress.java:1473)
        at      at ch.qos.logback.core.util.ContextUtil.getLocalHostName(ContextUtil.java:32)
        at      at ch.qos.logback.core.util.ContextUtil.addHostNameAsProperty(ContextUtil.java:41)
        at      at ch.qos.logback.classic.joran.action.ConfigurationAction.begin(ConfigurationAction.java:56)
        at      at ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:276)
        at      at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:148)
        at      at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:130)
        at      at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50)
        at      at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:157)
        at      at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:143)
        at      at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:106)
        at      at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:56)
        at      at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:75)
        at      at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:148)
        at      at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:85)
        at      at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)
        at      at org.slf4j.LoggerFactory.bind(LoggerFactory.java:128)
        at      at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:107)
        at      at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:295)
        at      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:269)
        at      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281)
        at      at com.basho.proserv.datamigrator.riak.Connection.<init>(Connection.java:21)
        at      at com.basho.proserv.datamigrator.Main.runDumper(Main.java:378)
        at      at com.basho.proserv.datamigrator.Main.main(Main.java:96)
Caused by: java.net.UnknownHostException: centos-ami: Name or service not known
        at      at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
        at      at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:901)
        at      at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1293)
        at      at java.net.InetAddress.getLocalHost(InetAddress.java:1469)
        at      ... 23 common frames omitted
09:38:54,481 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
09:38:54,494 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
09:38:54,643 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
09:38:54,863 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.FileAppender]
09:38:54,866 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [FILE]
09:38:54,872 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
09:38:54,873 |-INFO in ch.qos.logback.core.FileAppender[FILE] - File property is set to [log/riak-data-migrator-error.log]
09:38:54,875 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.FileAppender]
09:38:54,875 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STATUS]
09:38:54,939 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
09:38:54,940 |-INFO in ch.qos.logback.core.FileAppender[STATUS] - File property is set to [log/riak-data-migrator-status.log]
09:38:54,942 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [status] to INFO
09:38:54,942 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [status] to false
09:38:54,942 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STATUS] to Logger[status]
09:38:54,943 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to ERROR
09:38:54,943 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [FILE] to Logger[ROOT]
09:38:54,943 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
09:38:54,947 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@2c6d1158 - Registering current configuration as safe fallback point

this long message shouldn't be there, the job gets done (the dump happens correctly, but each time I issue riak-data-migrator I get this printed), but I don't know why it's printed, it might be an error.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions