Macports Cmake with Outdated Frameworks

Cmake always got failed when upgrading macports:

In that cmake/main.log:

These symbols must be from libcurl or other similar name, the only possible one in macports is ‘curl‘, which, I tried, is not the solution.

More in that log file:

This libcurl.framework is not introduced by Xcode 5 or 6, in fact, I don’t know why they are there.

Those libxxx.framework-s were created at June 21, I can’t tell what might happen that day or those days.
I tried to file it:


I mkdir-ed an ‘old’, and moved all those libxxx.framework-s to that folder, retried port install cmake, then it worked.

Macports Cmake with Outdated Frameworks by @sskaje:

OSX Server 4.0 Redeem Code

Free for developers.

Click here

Apple Developer Redeem Codes
Free OS X Yosemite(10.10) Developer Preview Redeem Code for Developers
Apple gives free OS X Server 3.0 redeem codes to developers

OSX Server 4.0 Redeem Code by @sskaje:

Incoming search terms:

Manually Upgrade CDH 5.2 in CM 5

I was interrupted again when upgrading CDH.


This time, NameNode was not started, I have to bring them up and resume the upgrade progress.
I didn’t save any log about NN’s error, stop all HDFS components and ran ‘Upgrade HDFS Metadata‘, then start HDFS.


Next, YARN.
I started YARN, and then all other services. Hive went down, then YARN.
I checked CM’s monitor:

I found both instances of ResourceManager were ‘Standby‘.

Here is what I found from /var/log/hadoop-yarn/

Google helps a lot:

In /opt/cloudera/parcels/CDH/lib/zookeeper/bin/,

one by one, because does not have wildcard support.


I just guessed that hive didn’t work because of YARN, but I was wrong.
I checked all hive related commands executed by CM:

So I stopped Hive, ran Update Hive Metastore NameNodes and Upgrade Hive Metastore Database Schema, none of them worked but with the error message above.
I got more from logs:

The schemaTool reminded me, I manually upgraded hive metastore in Feb: Hive MetaStore Schema Upgrade Failed When Upgrading CDH5.
But this time, dbType should be postgres instead of derby.(Derby is not supported by Impala, that’s why I changed to postgresql embedded in Cloudera Manager.)

I cann’t find the terminal output, but when I ran:

I found a similar output (only first few lines) to the blog post above, saying schemaTool was trying to connect to derby

I re-deploy hive’s client configuration, and checked /etc/hive/conf/hive-site.xml, and compared with /var/run/cloudera-scm-agent/process/4525-hive-HIVEMETASTORE/hive-site.xml,
xml under /etc uses hive metastore’s thrift server and that under CM’s running folder speicified the exact database connection. schemaTool uses the /etc one.
So I replaced /etc one with CM’s, and then redo upgradeSchema:

Same error as I saw in CM’s log, plpgsql does not exist. Fix this by:

You can find password from the xml I mentioned above of file like

If you meet error message saying OWNER_NAME or OWNER_TYPE already exists in table DBS, open /opt/cloudera/parcels/CDH/lib/hive/scripts/metastore/upgrade/postgres/016-HIVE-6386.postgres.sql and comment/delete the two ALTER TABLE lines.

Manually Upgrade CDH 5.2 in CM 5 by @sskaje:

Incoming search terms:

OCServ with AnyConnect on OSX

I tried a lot to make Cisco Anyconnect Secure Mobility Client work with OCServ, on OSX, on Windows, all failed.
But the AnyConnect for iOS works fine.
You can download the latest clients from: Cisco AnyConnect Clients 3.1.05170 download, 3.1.05182 is also provided.

AnyConnect for OSX always says:

In /var/log/system.log:

I read the chapter ‘False Captive Portal Detection‘ from Cisco’s official documentation, nothing useful.

I saw someone said that AnyConnect 3.1 added extra certificate verification than 3.0, which makes 3.1 not compatible with ocserv.
The latest version of AnyConnect for iOS is 3.0.12119, but for PC/Mac 3.1.05182.
I tried to find clients of AnyConnect 3.0.11042/3.0.11046, only two can be found, and MD5 checksum are same no matter where I downloaded.

You can find files here:

I tested the OSX one, the PKG file requires me change security level of application installing, it really works, the bad news is, there’s nowhere to choose client certificate but clicking allow/decline of private key usage.




OCServ with AnyConnect on OSX by @sskaje:

Incoming search terms:

Macbook Pro Boot Failure


I’m using MacBook Pro with Retina Display, Mid 2012. Partition is not changed, Volume label is ‘Macintosh HD‘.

I was trying to wake my macbook pro up in airport, the monitor was not lightened. Then I forced shutdown and reboot, monitor was still dark. I tried a lot, not work.
I thought I should reset PRAM, after that I saw the apple logo with gray progress bar, running to 20% at most, then computer shutdown.

UPDATE[2014-10-11]: One of my friends met the same progress bar, but resetting PRAM works for him.

Continue reading “Macbook Pro Boot Failure” »

Macbook Pro Boot Failure by @sskaje:

Incoming search terms: