AnsweredAssumed Answered

MapR 5.0 Upgrade Documentation - Update needed.

Question asked by mandoskippy on Aug 18, 2015
Latest reply on Aug 18, 2015 by wochanda
Hey all, I am doing an upgrade to MapR 5.0 and was reviewing the documentation.  Basically, the documentation here: http://doc.mapr.com/display/MapR/Offline+Upgrade+to+5.0
states that on ubuntu running the command dpkg --list | grep "mapr" | awk '{ print $2}' will get a list of all mapr packages on that node.  This is not correct. If packages were installed at one time and removed, this will still list those packages.  For example, if I remove the awk statement:

$ dpkg --list | grep "mapr"
rc  mapr-cldb                             4.0.0.24976.BETA-1                MapR: CLDB role package
ii  mapr-core                             4.1.0.31175.GA-1                  MapR: Core (New) package
ii  mapr-core-internal                    4.1.0.31175.GA-1                  MapR: Core Internal package
rc  mapr-drill                            1.0.0.31839-1                     Apache Drill Package, built for the MapR profile
ii  mapr-fileserver                       4.1.0.31175.GA-1                  MapR: Fileserver role package.
ii  mapr-hadoop-core                      2.5.1.31175.GA-1                  MapR: Hadoop Core package
ii  mapr-hbase                            0.94.24.201501131803              MapR: HBase binary package
ii  mapr-mapreduce1                       0.20.2.31175.GA-1                 MapR: Map Reduce 1 package
ii  mapr-mapreduce2                       2.5.1.31175.GA-1                  MapR: Map Reduce 2 package
ii  mapr-nfs                              4.1.0.31175.GA-1                  MapR: NFS server role package.
ii  mapr-patch                            4.1.0.31175.GA-32000              MapR Technologies, Inc. patch software
rc  mapr-tasktracker                      4.0.1.27334.GA-1                  MapR: Tasktracker role package
rc  mapr-webserver                        4.0.0.24976.BETA-1                MapR: MCS role package.
ii  mapr-zk-internal                      4.1.0.31175.GA.v3.4.5-1           MapR: Zookeeper binary package
ii  mapr-zookeeper                        4.1.0.31175.GA-1                  MapR: Zookeeper role package

There are a number of packages that have rc signifying they have been removed, and a apt-get install of those would add them when they weren't there before.

Might I suggest an update?

dpkg --list | grep "mapr" | grep -P "^ii"| awk '{ print $2}'

that will only look for the results of mapr grep that start with ii

 

Outcomes