Created
November 30, 2011 19:00
-
-
Save chetan/1410317 to your computer and use it in GitHub Desktop.
patch to enable vertica5 to be installed on ubuntu 10.04 (lucid)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /opt/vertica/oss/python/lib/python2.7/site-packages/vertica/network/SystemProfileFactory.py.orig 2011-09-15 14:28:14.000000000 -0400 | |
+++ /opt/vertica/oss/python/lib/python2.7/site-packages/vertica/network/SystemProfileFactory.py 2011-09-15 14:29:51.000000000 -0400 | |
@@ -142,8 +142,14 @@ | |
if (res[0] == '0'): | |
opsys = DBinclude.OS_DEBIAN | |
return opsys, host | |
+ | |
+ (status, res) = ssh.execute("grep \"squeeze\" /etc/debian_version", hide=True) | |
+ if (res[0] == '0'): | |
+ opsys = DBinclude.OS_DEBIAN | |
+ return opsys, host | |
+ | |
- raise UnsupportedOSException("(%s) This version of Debian is unsupported." % host) | |
+ raise UnsupportedOSException("(%s) This version of Debian/Ubuntu is unsupported." % host) | |
looks like this has been discussed on the vertica forum:
http://my.vertica.com/forums/topic/trouble-installing-on-ubuntu-12-04/
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This patch helped me get past one error, but i hit another.
I have ubuntu 12.04 and had to modify the patch to SystemProfileFactory.py to match the contents of my
/etc/debian_version which was wheezy/sid
(status, res) = ssh.execute("grep "wheezy" /etc/debian_version", hide=True)
This fixed the UnsupportedOsException error, but then i got the following running install_vertica with and without any commandline options:
I added a print statement to SSH.py to see what json object was trying to load. It seems it might be missing a braces match.
Have to look into it some more...
+++++++++++++++++++++ ./install_vertica without parameters ++++++++++++
status True res {'localhost': ['0', ["Package `vertica' is not available.", 'Use dpkg --info (= dpkg-deb --info) to examine archive files,', 'and dpkg --contents (= dpkg-deb --contents) to list their contents.', '{ "hostname":"kesten-K42Jr", "devices":[ {"device":"/dev/sda6", "readahead":128 } ], "file_max":{ "current":383611, "suggested":65536 }, "max_map":{ "current":65530, "suggested":243857 }, "min_free_kbytes":{ "current":67584, "suggested":4096 }, "virtual_space":{ "current":"unlimited", "suggested":"unlimited" }, "max_file_size":{ "current":"unlimited", "suggested":"unlimited" }, "max_open_file":{ "current":"1024", "suggested":"65536" }, "pam_su_enabled":"true", "nics":[ {"name":"eth0", "speed":"unknown", "ipaddr":"", "broadcast":"", "netmask":""}, {"name":"lo", "speed":"locallink", "ipaddr":"127.0.0.1", "broadcast":"255.255.255.255", "netmask":"255.0.0.0"}, {"name":"wlan0", "speed":"unknown", "ipaddr":"192.168.1.12", "broadcast":"192.168.1.255", "netmask":"255.255.255.0"}], "total_memory":3810, "max_user_proc":"30344", "vertica":{"brand":"package vertica-ce is not installed"}, "cpu_info":{ "number_of_cpus":4, "cpu_type":" Intel(R) Core(TM) i5 CPU M 430 @ 2.27GHz"}}']]}
host localhost
Error: No JSON object could be decoded
Traceback (most recent call last):
File "/opt/vertica/bin/verticaInstall.py", line 1188, in
if not SSH.check_min_free_kbytes(installerSSH, fix=True):
File "/opt/vertica/oss/python/lib/python2.7/site-packages/vertica/network/SSH.py", line 2427, in check_min_free_kbytes
data =json.loads( ''.join(res[host][1]))
File "/opt/vertica/oss/python/lib/python2.7/json/init.py", line 310, in loads
return _default_decoder.decode(s)
File "/opt/vertica/oss/python/lib/python2.7/json/decoder.py", line 346, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/opt/vertica/oss/python/lib/python2.7/json/decoder.py", line 364, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded