[
https://issues.apache.org/jira/browse/AMBARI-5130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13940911#comment-13940911
]
Dmytro Sen commented on AMBARI-5130:
------------------------------------
[~aonishuk]
I think you committed changes to UpgradeCatalog150Test by mistake.
UpgradeCatalog150Test.testAddHistoryServer() fails:
{noformat}
java.util.NoSuchElementException
at java.util.AbstractList$Itr.next(AbstractList.java:350)
at
org.eclipse.persistence.indirection.IndirectList$1.next(IndirectList.java:563)
at
org.apache.ambari.server.upgrade.UpgradeCatalog150.addHistoryServer(UpgradeCatalog150.java:536)
at
org.apache.ambari.server.upgrade.UpgradeCatalog150Test.testAddHistoryServer(UpgradeCatalog150Test.java:175)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
at
com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:77)
at
com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:195)
at
com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:63)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
{noformat}
> Ambari stack upgrade, cannot delete Mapreduce using UpgradeHelper_HDP2.py
> -------------------------------------------------------------------------
>
> Key: AMBARI-5130
> URL: https://issues.apache.org/jira/browse/AMBARI-5130
> Project: Ambari
> Issue Type: Bug
> Reporter: Andrew Onischuk
> Assignee: Andrew Onischuk
> Fix For: 1.5.0
>
>
> Following steps on
> http://dev.hortonworks.com.s3.amazonaws.com/HDPDocuments/HDP2/HDP-2.1.0.0/bk_using_Ambari_book/content/ambari-chap9-4-1_2x.html
> when trying to delete mapreduce, it complains "HISTORYSERVER is in a
> non-removable state"
> {code}
> python UpgradeHelper_HDP2.py --hostname localhost --user admin --password
> admin --clustername cl1 delete-mr
> Have you saved MR host mapping using action save-mr-mapping [y/n] (n)? y
> INFO:UpgradeHelper:/usr/bin/curl -u admin:admin -H X-Requested-By: ambari -X
> PUT -d {"HostRoles": {"state": "DISABLED"}}
> http://localhost:8080/api/v1/clusters/cl1/hosts/amb-upg-all-others-3.cs1cloud.internal/host_components/TASKTRACKER
> INFO:UpgradeHelper:/usr/bin/curl -u admin:admin -H X-Requested-By: ambari -X
> PUT -d {"HostRoles": {"state": "DISABLED"}}
> http://localhost:8080/api/v1/clusters/cl1/hosts/amb-upg-all-others-3.cs1cloud.internal/host_components/JOBTRACKER
> INFO:UpgradeHelper:/usr/bin/curl -u admin:admin -H X-Requested-By: ambari -X
> DELETE http://localhost:8080/api/v1/clusters/cl1/services/MAPREDUCE
> 'ERROR: Exiting with exit code 1. Reason: {\n "status" : 500,\n "message" :
> "org.apache.ambari.server.controller.spi.SystemException: An internal system
> exception occurred: Cannot remove cl1/MAPREDUCE. HISTORYSERVER is in a
> non-removable state."\n}'
> ERROR:UpgradeHelper:ERROR: Exiting with exit code 1. Reason: {
> "status" : 500,
> "message" : "org.apache.ambari.server.controller.spi.SystemException: An
> internal system exception occurred: Cannot remove cl1/MAPREDUCE.
> HISTORYSERVER is in a non-removable state."
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)