EE wont replace faulty iPhone 5

After many pointless emails to EE and their Executive Office they have finally issued their final word on the matter of replacing a faulty iPhone 5 battery:

As EE like to ignore the law I sent this to their CEO, Olaf Swantee:

Having searched online it is clear that we are not the only people fighting with EE to replace or repair a faulty iPhone5. To date we have received nothing from EE apart from the email above and continue to have a faulty iPhone, no reply from Olaf or the “Executive Office”

facebooktwittergoogle_pluslinkedin

MapReduce and Flumes .tmp files

While using one of the many online guides for streaming tweets into Hadoop (particular thanks to ) if became apparant that as the volume of tweets increased MapReduce would fail to run any queries against the data. Typical errors would be

Caused by: org.apache.hadoop.ipc.RemoteException(java.io.FileNotFoundException): File does not exist: /user/flume/tweets/FlumeData.1395159404667.tmp

This is because the tmp files are getting written to the proper file name while MapRefuce is still holding them for processing. The way to combat this is to get MapReduce to ignore .tmp files. This requires the creation of a jar file and some ammendments to hive-site.xml. Not being a java programmer it took me a while to understand the process and most guides relied on using Eclipse, being an Ubuntu user I prefer NetBeans. Here is the precompiled jar file that I created based on the Jira issue for this.

The ammendments to the hive-site.xml are:

hive.aux.jars.path = file:///usr/lib/hadoop/twitterutil-1.0-SNAPSHOT.jar
mapred.input.pathFilter.class = com.twitter.util.FileFilterExcludeTmpFiles

These either need to be entered into Ambari or added (with formatting!) to hive-site.xml

One of the caveats I noticed was that the jar file needed to be under /usr/lib/hadoop rather than under /usr/lib/hadoop/lib like most of the other jar files

facebooktwittergoogle_pluslinkedin

Load CSV in Hue

When creating a table in Hive based on a large CSV file the following error occurs;

IOException: Failed to replace a bad datanode on the existing pipeline due to no more good datanodes being available to try. (Nodes: current=[10.0.49.248:50010, 10.0.49.249:50010], original=[10.0.49.248:50010, 10.0.49.249:50010]). The current failed datanode replacement policy is DEFAULT, and a client may configure this via ‘dfs.client.block.write.replace-datanode-on-failure.policy’ in its configuration.

This is caused by the number of nodes being too high in hdfs-site.xml, the default value of block.replication is 3, by dropping this to 2 (even with a 1 node cluster) resolved the issue.

facebooktwittergoogle_pluslinkedin

Observium on FreeBSD

This is my guide to installing Observium on FreeBSD. I am using 9.1 patched with all the latest updates.

For some reason Observium would only run from /opt sp these are the commands I used to get a base install


mkdir /opt
cd /opt
cd /usr/ports/devel/subversion
make clean install
svn co http://www.observium.org/svn/observer/trunk/ observium
cd /opt/observium/
mv config.php.default config.php
mkdir rrd

At this point you need to login to the Mysql server and create a database and user for observium, once you have this you need to edit config.php with these details


php includes/update/update.php

appears to install the database, at this point I got a few errors about paths to things such as RRD, fping etc so you need to edit includes/defaults.inc.php to set them correctly. Once thats all done your ready to add the first user, the command is php ./adduser.php username password 10. Im running this on a server with other sites so I created a virtual host config and browsed to the URL and all appeared OK. Upon trying to use I was informed that I need mcrypt from php5-extensions and some python stuff. The extensions are difficult to install but to install python the command was cd /usr/ports/*/py-MySQLdb && make install clean

facebooktwittergoogle_pluslinkedin

harfbuzz failing on Freebsd

While trying to install cacti on a production Freebsd 9.1 server it failed with

/usr/local/lib/libXrender.so: undefined reference to `_XEatDataWords'
gmake[2]: *** [hb-view] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[2]: Leaving directory `/usr/ports/print/harfbuzz/work/harfbuzz-0.9.19/util'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/print/harfbuzz/work/harfbuzz-0.9.19'
gmake: *** [all] Error 2
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** [do-build] Error code 1

Stop in /usr/ports/print/harfbuzz

Turns out that you need to reinstall libXrender from ports

facebooktwittergoogle_pluslinkedin

Xubuntu VNC Session

I recently had the need for a remote VNC server, I found a really good guide here but that was for Gnome, being a fan of Xubuntu I wanted to use this. Once I had the VPS details I logged in and installed xubuntu-desktop package and followed the guide. I had real trouble trying to get VNC to start with Xubuntu, after much googling I found that the xstartup needed to be:

#!/bin/sh

# Uncomment the following two lines for normal desktop:
#unset SESSION_MANAGER
#exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
x-terminal-emulator -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
x-window-manager &
startxfce4 &

facebooktwittergoogle_pluslinkedin

Ubuntu 13.04

So 13.04 is here, but whats the big deal?

Well visually none, but the biggest feature I notice is the “Friends” app, a replacement for Gwibber. Yes its nice to have all the new features etc but the one thing that Ubunutu truly needs is an Exchange compatible email client, yes I know about the workarounds like Davmail etc but thats a hack in my book. While I still use Ubuntu across all my work and personnel devices, including my tablet, this is the one feature that I could really use.

Looking forward to Saucy Salamander though!

facebooktwittergoogle_pluslinkedin

Rooting Asus Transformer 101 using Ubuntu

I wanted to try Ubuntu Touch on my TF101 but could find any guides for using Ubuntu to do this, all the guides were for using Ubunut. After hours of googling I found a link here

This enabled me to root the device and installed the relevant software to boot Touch. Once I had enough of Touch I used this link to restore to Jelly Bean

facebooktwittergoogle_pluslinkedin

A Sad Day…

It is with great regret that I must advise that I have moved to Linux Mint 14. The reason? Cinnamon. Simply the best desktop that ive come across. Having moved away from Unity as soon as I tried it, mainly due to the Amazon intergration, the next step was Xfce4, which was technically great, although visually lacked that something. Having tried Cinnamon on top of Ubuntu Ive decided to go the whole way and replace Ubuntu with Mint.

First impressions are great, visually its on the mark and being based on Ubuntu means the packages are there for any software not already installed.

facebooktwittergoogle_pluslinkedin

FreeBSD 8.3 to 9.0

I recently upgraded one of my FreeBSD physical servers from 8.3 to 9.0. Using freebsd-update all went OK and then I it came to the reboot. The server failed to restart and was stuck at the BOOT> prompt.

Time for a live CD to check the drives. At this point it dawned on me that the drive assignments had changed, instead of ad4s1a etc they were now ada0sa1, using these commands I managed to use the rescue partition to edit the fstab file:

/rescue/mount /dev/ad4s1f /usr
/rescue/vi /etc/fstab

Once I changed to the new drive assignment and revbooted, the server came back up OK

facebooktwittergoogle_pluslinkedin