From d6a0d86e0c356c23a8c7e29e7655cc94282c1cd2 Mon Sep 17 00:00:00 2001 From: Doug Daniels Date: Fri, 9 Sep 2011 14:43:07 -0300 Subject: [PATCH] Had to explicitly import pig class to make this work (see https://pig.apache.org/docs/r0.9.0/cont.html#invocation-basics) --- examples/ch9/pagerank.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/ch9/pagerank.py b/examples/ch9/pagerank.py index a8bdd30..1199f23 100644 --- a/examples/ch9/pagerank.py +++ b/examples/ch9/pagerank.py @@ -11,8 +11,9 @@ # License for the specific language governing permissions and limitations # under the License. -from org.apache.pig.scripting import * +from org.apache.pig.scripting import Pig +# explicitly import Pig class P = Pig.compile(""" -- PR(A) = (1-d) + d (PR(T1)/C(T1) + ... + PR(Tn)/C(Tn))