org.springframework.web.client.HttpClientErrorException: 404 Not Found

Apache's JIRA Issue Tracker | Yesha Vora | 10 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Livy Interpreter gets a NestedRuntimException when running with Kerberized components. INFO [2016-10-13 22:24:37,576] ({pool-2-thread-4} SchedulerFactory.java[jobStarted]:131) - Job remoteInterpretJob_1476411877576 started by scheduler org.apache.zeppelin.livy.LivySparkInterpreter103042912 ERROR [2016-10-13 22:24:37,935] ({pool-2-thread-4} LivyHelper.java[interpretInput]:190) - Interpreter exception org.springframework.web.client.RestClientException: Error running rest call; nested exception is org.springframework.web.client.HttpClientErrorException: 404 Not Found at org.springframework.security.kerberos.client.KerberosRestTemplate.doExecute(KerberosRestTemplate.java:196) at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:580) at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:498) at org.apache.zeppelin.livy.LivyHelper.executeHTTP(LivyHelper.java:356) at org.apache.zeppelin.livy.LivyHelper.executeCommand(LivyHelper.java:297) at org.apache.zeppelin.livy.LivyHelper.interpret(LivyHelper.java:238) at org.apache.zeppelin.livy.LivyHelper.interpretInput(LivyHelper.java:188) at org.apache.zeppelin.livy.LivySparkInterpreter.interpret(LivySparkInterpreter.java:108) at org.apache.zeppelin.interpreter.LazyOpenInterpreter.interpret(LazyOpenInterpreter.java:94) at org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer$InterpretJob.jobRun(RemoteInterpreterServer.java:390) at org.apache.zeppelin.scheduler.Job.run(Job.java:176) at org.apache.zeppelin.scheduler.FIFOScheduler$1.run(FIFOScheduler.java:139) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: org.springframework.web.client.HttpClientErrorException: 404 Not Found at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:91) at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:667) at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:620) at org.springframework.security.kerberos.client.KerberosRestTemplate.doExecuteSubject(KerberosRestTemplate.java:202) at org.springframework.security.kerberos.client.KerberosRestTemplate.access$100(KerberosRestTemplate.java:67) at org.springframework.security.kerberos.client.KerberosRestTemplate$1.run(KerberosRestTemplate.java:191) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:360) at org.springframework.security.kerberos.client.KerberosRestTemplate.doExecute(KerberosRestTemplate.java:187) ... 18 more INFO [2016-10-13 22:24:37,937] ({pool-2-thread-4} SchedulerFactory.java[jobFinished]:137) - Job remoteInterpretJob_1476411877576 finished by scheduler org.apache.zeppelin.livy.LivySparkInterpreter103042912

    Apache's JIRA Issue Tracker | 6 months ago | Greg Senia
    org.springframework.web.client.RestClientException: Error running rest call; nested exception is org.springframework.web.client.HttpClientErrorException: 404 Not Found
  2. 0

    Livy SparkR gets "404 not found" error Scenario: * Start a notebook and Run below sparkR paragraph. {code} %sh hdfs dfs -copyFromLocal examples/src/main/resources/people.json /tmp{code} {code} %livy.sparkr sc <- sparkR.init(sparkPackages="com.databricks:spark-csv_2.11:1.0.3") sqlContext <- sparkRSQL.init(sc) people <- read.df(sqlContext, "/tmp/people.json", "json") head(people) printSchema(people) write.df(people, path="people.parquet", source="parquet", mode="overwrite") ============================output ================================== Re-using existing Spark Context. Please stop SparkR with sparkR.stop() or restart R to create a new Spark Context age name 1 NA Michael 2 30 Andy 3 19 Justin root |-- age: long (nullable = true) |-- name: string (nullable = true) NULL Attaching package: ‘SparkR’ The following objects are masked from ‘package:stats’: cov, filter, lag, na.omit, predict, sd, var The following objects are masked from ‘package:base’: colnames, colnames<-, endsWith, intersect, rank, rbind, sample, startsWith, subset, summary, table, transform{code} * let the livy session expire. * run the same paragraph again. %livy.sparkR fails to execute with "404 Not Found" {code:title=livy interpreter log} INFO [2016-07-12 22:59:35,395] ({pool-2-thread-9} SchedulerFactory.java[jobFinished]:137) - Job remoteInterpretJob_1468364375373 finished by scheduler org.apache.zeppelin.livy.LivySparkRInterpreter1028865681 INFO [2016-07-12 22:59:37,620] ({pool-2-thread-5} SchedulerFactory.java[jobStarted]:131) - Job remoteInterpretJob_1468364377620 started by scheduler org.apache.zeppelin.livy.LivySparkRInterpreter1028865681 ERROR [2016-07-12 22:59:37,633] ({pool-2-thread-5} LivySparkRInterpreter.java[interpret]:81) - Exception in LivySparkRInterpreter while interpret org.springframework.web.client.HttpClientErrorException: 404 Not Found at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:91) at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:667) at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:620) at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:580) at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:498) at org.apache.zeppelin.livy.LivyHelper.executeHTTP(LivyHelper.java:354) at org.apache.zeppelin.livy.LivyHelper.executeCommand(LivyHelper.java:299) at org.apache.zeppelin.livy.LivyHelper.interpret(LivyHelper.java:240) at org.apache.zeppelin.livy.LivySparkRInterpreter.interpret(LivySparkRInterpreter.java:79) at org.apache.zeppelin.interpreter.LazyOpenInterpreter.interpret(LazyOpenInterpreter.java:94) at org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer$InterpretJob.jobRun(RemoteInterpreterServer.java:341) at org.apache.zeppelin.scheduler.Job.run(Job.java:176) at org.apache.zeppelin.scheduler.FIFOScheduler$1.run(FIFOScheduler.java:139) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) INFO [2016-07-12 22:59:37,637] ({pool-2-thread-5} SchedulerFactory.java[jobFinished]:137) - Job remoteInterpretJob_1468364377620 finished by scheduler org.apache.zeppelin.livy.LivySparkRInterpreter1028865681{code} This issue looks like Livy interpreter specific. The interpreter works fine after restarting livy interpreter.

    Apache's JIRA Issue Tracker | 10 months ago | Yesha Vora
    org.springframework.web.client.HttpClientErrorException: 404 Not Found
  3. 0

    403 Forbidden error via ZUUL only

    Stack Overflow | 9 months ago | Ti mur
    org.springframework.web.client.HttpClientErrorException: 403 Forbidden
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  1. Victor_IT 3 times, last 6 days ago
  2. batwalrus76 7 times, last 2 weeks ago
  3. Nikolay Rybak 10 times, last 3 weeks ago
  4. johnxfly 5 times, last 1 month ago
  5. tfr 34 times, last 9 months ago
1 more registered users
44 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.springframework.web.client.HttpClientErrorException

    404 Not Found

    at org.springframework.web.client.DefaultResponseErrorHandler.handleError()
  2. Spring
    RestTemplate.exchange
    1. org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:91)
    2. org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:667)
    3. org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:620)
    4. org.springframework.web.client.RestTemplate.execute(RestTemplate.java:580)
    5. org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:498)
    5 frames
  3. org.apache.zeppelin
    FIFOScheduler$1.run
    1. org.apache.zeppelin.livy.LivyHelper.executeHTTP(LivyHelper.java:354)
    2. org.apache.zeppelin.livy.LivyHelper.executeCommand(LivyHelper.java:299)
    3. org.apache.zeppelin.livy.LivyHelper.interpret(LivyHelper.java:240)
    4. org.apache.zeppelin.livy.LivySparkRInterpreter.interpret(LivySparkRInterpreter.java:79)
    5. org.apache.zeppelin.interpreter.LazyOpenInterpreter.interpret(LazyOpenInterpreter.java:94)
    6. org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer$InterpretJob.jobRun(RemoteInterpreterServer.java:341)
    7. org.apache.zeppelin.scheduler.Job.run(Job.java:176)
    8. org.apache.zeppelin.scheduler.FIFOScheduler$1.run(FIFOScheduler.java:139)
    8 frames
  4. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    2. java.util.concurrent.FutureTask.run(FutureTask.java:266)
    3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
    4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
    5. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    7. java.lang.Thread.run(Thread.java:745)
    7 frames