Cannot resolve the host name for /192.168.1.148 because of javax.naming.NameNotFoundException

561 views
Skip to first unread message

Kurt Maegerle

unread,
Jun 4, 2015, 2:39:37 PM6/4/15
to predicti...@googlegroups.com
I was trying to pio train and I got the following error. The one I posted as the title (Cannot resolve the host name for /192.168.1.148 because of javax.naming.NameNotFoundException) I do not know anything about and have no idea how to resolve.

The other issue seems to be "The required field phrase cannot be null." I am not entirely sure, but this may be suggesting that there is data in the eventserver that does not have a required value for a given key. This may make sense, because I believe I may have imported some data to the eventserver while making my import.py script that I did not mean to import. 

Is there any way to clear the eventserver? Are there any other ideas as to what might be wrong?



[WARN] [TableInputFormatBase] Cannot resolve the host name for /192.168.1.148 because of javax.naming.NameNotFoundException: DNS name not found [response code 3]; remaining name '148.1.168.192.in-addr.arpa'
2.splitWordsIgnoreRegexp = \s+
2.useSplitWords = true
2.splitWordsTokenizerRegexp = [\p{L}][\p{L}0-9]*|(?:\$ ?)?[0-9]+(?:\.[0-9]{2})?%?|\s+|[\x80-\uFFFD]|.
Exception in thread "main" io.prediction.data.storage.DataMapException: The required field phrase cannot be null.
at io.prediction.data.storage.DataMap.get(DataMap.scala:74)
at io.prediction.classifier.DataSource$$anonfun$readTraining$1.apply(DataSource.scala:21)
at io.prediction.classifier.DataSource$$anonfun$readTraining$1.apply(DataSource.scala:19)
at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:108)
at io.prediction.classifier.DataSource.readTraining(DataSource.scala:19)
at io.prediction.classifier.DataSource.readTraining(DataSource.scala:8)
at io.prediction.controller.PDataSource.readTrainingBase(PDataSource.scala:38)
at io.prediction.controller.Engine$.train(Engine.scala:602)
at io.prediction.controller.Engine.train(Engine.scala:152)
at io.prediction.workflow.CoreWorkflow$.runTrain(CoreWorkflow.scala:60)
at io.prediction.workflow.CreateWorkflow$.main(CreateWorkflow.scala:257)
at io.prediction.workflow.CreateWorkflow.main(CreateWorkflow.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:569)
at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:166)
at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:189)
at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:110)
at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)

Kenneth Chan

unread,
Jun 4, 2015, 3:37:49 PM6/4/15
to predicti...@googlegroups.com

Exception in thread "main" io.prediction.data.storage.DataMapException: The required field phrase cannot be null.

This error meaning that some of your data is missing the field "phrase" while you expect it is not optional field.

You can query event server as described here

To clear your app data, use "pio app data-delete <your app name>"

how do you read the event data in DataSource ?
if you add try catch block to catch the exception and print the event, it help you to isolate the event or entityId causing the error.
for example,

Kenneth
Reply all
Reply to author
Forward
0 new messages