Learn PySpark: Build python-based machine learning and deep learning models 1st Edition Pramod Singh pdf download
Learn PySpark: Build python-based machine learning and deep learning models 1st Edition Pramod Singh pdf download
https://textbookfull.com/product/learn-pyspark-build-python-
based-machine-learning-and-deep-learning-models-1st-edition-
pramod-singh/
https://textbookfull.com/product/machine-learning-with-pyspark-
with-natural-language-processing-and-recommender-systems-1st-
edition-pramod-singh/
https://textbookfull.com/product/deep-learning-with-python-learn-
best-practices-of-deep-learning-models-with-pytorch-2nd-edition-
nikhil-ketkar-jojo-moolayil/
https://textbookfull.com/product/deep-learning-with-python-learn-
best-practices-of-deep-learning-models-with-pytorch-2nd-edition-
nikhil-ketkar-jojo-moolayil-2/
https://textbookfull.com/product/deploy-machine-learning-models-
to-production-with-flask-streamlit-docker-and-kubernetes-on-
google-cloud-platform-pramod-singh/
Deploy Machine Learning Models to Production: With
Flask, Streamlit, Docker, and Kubernetes on Google
Cloud Platform 1st Edition Pramod Singh
https://textbookfull.com/product/deploy-machine-learning-models-
to-production-with-flask-streamlit-docker-and-kubernetes-on-
google-cloud-platform-1st-edition-pramod-singh/
https://textbookfull.com/product/hyperparameter-optimization-in-
machine-learning-make-your-machine-learning-and-deep-learning-
models-more-efficient-1st-edition-tanay-agrawal/
https://textbookfull.com/product/hyperparameter-optimization-in-
machine-learning-make-your-machine-learning-and-deep-learning-
models-more-efficient-1st-edition-tanay-agrawal-2/
https://textbookfull.com/product/deep-learning-with-python-
develop-deep-learning-models-on-theano-and-tensorflow-using-
keras-jason-brownlee/
https://textbookfull.com/product/practical-machine-learning-with-
aws-process-build-deploy-and-productionize-your-models-using-aws-
himanshu-singh/
Pramod Singh
Learn PySpark
Build Python-based Machine Learning and Deep
Learning Models
Pramod Singh
Bangalore, Karnataka, India
Apress Standard
Trademarked names, logos, and images may appear in this book. Rather
than use a trademark symbol with every occurrence of a trademarked
name, logo, or image, we use the names, logos, and images only in an
editorial fashion and to the benefit of the trademark owner, with no
intention of infringement of the trademark. The use in this publication
of trade names, trademarks, service marks, and similar terms, even if
they are not identified as such, is not to be taken as an expression of
opinion as to whether or not they are subject to proprietary rights.
While the advice and information in this book are believed to be true
and accurate at the date of publication, neither the author nor the
editors nor the publisher can accept any legal responsibility for any
errors or omissions that may be made. The publisher makes no
warranty, express or implied, with respect to the material contained
herein.
1. Introduction to Spark
Pramod Singh1
As this book is about Spark, it makes perfect sense to start the first
chapter by looking into some of Spark’s history and its different
components. This introductory chapter is divided into three sections. In
the first, I go over the evolution of data and how it got as far as it has, in
terms of size. I’ll touch on three key aspects of data. In the second
section, I delve into the internals of Spark and go over the details of its
different components, including its architecture and modus operandi.
The third and final section of this chapter focuses on how to use Spark
in a cloud environment.
History
The birth of the Spark project occurred at the Algorithms, Machine, and
People (AMP) Lab at the University of California, Berkeley. The project
was initiated to address the potential issues in the Hadoop MapReduce
framework. Although Hadoop MapReduce was a groundbreaking
framework to handle big data processing, in reality, it still had a lot of
limitations in terms of speed. Spark was new and capable of doing in-
memory computations, which made it almost 100 times faster than any
other big data processing framework. Since then, there has been a
continuous increase in adoption of Spark across the globe for big data
applications. But before jumping into the specifics of Spark, let’s
consider a few aspects of data itself.
Data can be viewed from three different angles: the way it is
collected, stored, and processed, as shown in Figure 1-1.
Data Collection
A huge shift in the manner in which data is collected has occurred over
the last few years. From buying an apple at a grocery store to deleting
an app on your mobile phone, every data point is now captured in the
back end and collected through various built-in applications. Different
Internet of things (IoT) devices capture a wide range of visual and
sensory signals every millisecond. It has become relatively convenient
for businesses to collect that data from various sources and use it later
for improved decision making.
Data Storage
In previous years, no one ever imagined that data would reside at some
remote location, or that the cost to store data would be as cheap as it is.
Businesses have embraced cloud storage and started to see its benefits
over on-premise approaches. However, some businesses still opt for on-
premise storage, for various reasons. It’s known that data storage
began by making use of magnetic tapes. Then the breakthrough
introduction of floppy discs made it possible to move data from one
place to another. However, the size of the data was still a huge
limitation. Flash drives and hard discs made it even easier to store and
transfer large amounts of data at a reduced cost. (See Figure 1-2.) The
latest trend in the advancement of storage devices has resulted in flash
drives capable of storing data up to 2TBs, at a throwaway price.
Data Processing
The final aspect of data is using stored data and processing it for some
analysis or to run an application. We have witnessed how efficient
computers have become in the last 20 years. What used to take five
minutes to execute probably takes less than a second using today’s
machines with advanced processing units. Hence, it goes without saying
that machines can process data much faster and easier. Nonetheless,
there is still a limit to the amount of data a single machine can process,
regardless of its processing power. So, the underlying idea behind Spark
is to use a collection (cluster) of machines and a unified processing
engine (Spark) to process and handle huge amounts of data, without
compromising on speed and security. This was the ultimate goal that
resulted in the birth of Spark.
Spark Architecture
There are five core components that make Spark so powerful and easy
to use. The core architecture of Spark consists of the following layers, as
shown in Figure 1-3:
Storage
Resource management
Engine
Ecosystem
APIs
Storage
Before using Spark, data must be made available in order to process it.
This data can reside in any kind of database. Spark offers multiple
options to use different categories of data sources, to be able to process
it on a large scale. Spark allows you to use traditional relational
databases as well as NoSQL, such as Cassandra and MongoDB.
Resource Management
The next layer consists of a resource manager. As Spark works on a set
of machines (it also can work on a single machine with multiple cores),
it is known as a Spark cluster . Typically, there is a resource manager in
any cluster that efficiently handles the workload between these
resources. The two most widely used resource managers are YARN and
Mesos. The resource manager has two main components internally:
1. Cluster manager
2. Worker
2. Spark driver
The task is the data processing logic that has been written in either
PySpark or Spark R code. It can be as simple as taking a total frequency
count of words to a very complex set of instructions on an unstructured
dataset. The second component is Spark driver, the main controller of a
Spark application, which consistently interacts with a cluster manager
to find out which worker nodes can be used to execute the request. The
role of the Spark driver is to request the cluster manager to initiate the
Spark executor for every worker node.
Spark SQL
SQL being used by most of the ETL operators across the globe makes it
a logical choice to be part of Spark offerings. It allows Spark users to
perform structured data processing by running SQL queries. In
actuality, Spark SQL leverages the catalyst optimizer to perform the
optimizations during the execution of SQL queries.
Another advantage of using Spark SQL is that it can easily deal with
multiple database files and storage systems such as SQL, NoSQL,
Parquet, etc.
MLlib
Training machine learning models on big datasets was starting to
become a huge challenge, until Spark’s MLlib (Machine Learning
library) came into existence. MLlib gives you the ability to train
machine learning models on huge datasets, using Spark clusters. It
allows you to build in supervised, unsupervised, and recommender
systems; NLP-based models; and deep learning, as well as within the
Spark ML library.
Structured Streaming
The Spark Streaming library provides the functionality to read and
process real-time streaming data. The incoming data can be batch data
or near real-time data from different sources. Structured Streaming is
capable of ingesting real-time data from such sources as Flume, Kafka,
Twitter, etc. There is a dedicated chapter on this component later in this
book (see Chapter 3).
Graph X
This is a library that sits on top of the Spark core and allows users to
process specific types of data (graph dataframes), which consists of
nodes and edges. A typical graph is used to model the relationship
between the different objects involved. The nodes represent the object,
and the edge between the nodes represents the relationship between
them. Graph dataframes are mainly used in network analysis, and
Graph X makes it possible to have distributed processing of such graph
dataframes.
Local Setup
It is relatively easy to install and use Spark on a local system, but it fails
the core purpose of Spark itself, if it’s not used on a cluster. Spark’s core
offering is distributed data processing, which will always be limited to a
local system’s capacity, in the case that it’s run on a local system,
whereas one can benefit more by using Spark on a group of machines
instead. However, it is always good practice to have Spark locally, as
well as to test code on sample data. So, follow these steps to do so:
1. Ensure that Java is installed; otherwise install Java.
Dockers
Another way of using Spark locally is through the containerization
technique of dockers . This allows users to wrap all the dependencies
and Spark files into a single image, which can be run on any system. We
can kill the container after the task is finished and rerun it, if required.
To use dockers for running Spark, we must install Docker on the system
first and then simply run the following command: [In]: docker
run -it -p 8888:8888 jupyter/pyspark-notebook".
Cloud Environments
As discussed earlier in this chapter, for various reasons, local sets are
not of much help when it comes to big data, and that’s where cloud-
based environments make it possible to ingest and process huge
datasets in a short period. The real power of Spark can be seen easily
while dealing with large datasets (in excess of 100TB). Most of the
cloud-based infra-providers allow you to install Spark, which
sometimes comes preconfigured as well. One can easily spin up the
clusters with required specifications, according to need. One of the
cloud-based environments is Databricks.
Databricks
Databricks is a company founded by the creators of Spark, in order to
provide the enterprise version of Spark to businesses, in addition to
full-fledged support. To increase Spark’s adoption among the
community and other users, Databricks also provides a free community
edition of Spark, with a 6GB cluster (single node). You can increase the
size of the cluster by signing up for an enterprise account with
Databricks, using the following steps:
1. Search for the Databricks web site and select Databricks
Community Edition, as shown in Figure 1-6.
3. Once you are on the home page, you can choose to either load a
new data source or create a notebook from scratch, as shown in
Figure 1-8. In the latter case, you must have the cluster up and
running, to be able to use the notebook. Therefore, you must click
New Cluster, to spin up the cluster. (Databricks provides a 6GB AWS
EMR cluster.)
Figure 1-8 Creating a Databricks notebook
4. To set up the cluster, you must give a name to the cluster and select
the version of Spark that must configure with the Python version,
as shown in Figure 1-9. Once all the details are filled in, you must
click Create Cluster and wait a couple of minutes, until it spins up.
5. You can also view the status of the cluster by going into the Clusters
option on the left side widget, as shown in Figure 1-10. It gives all
the information associated with the particular cluster and its
current status.
6. The final step is to open a notebook and attach it to the cluster you
just created (Figure 1-11). Once attached, you can start the PySpark
code.
Conclusion
This chapter provided a brief history of Spark, its core components, and
the process of accessing it in a cloud environment. In upcoming
chapters, I will delve deeper into the various aspects of Spark and how
to build different applications with it.
© Pramod Singh 2019
P. Singh, Learn PySpark
https://doi.org/10.1007/978-1-4842-4961-1_2
2. Data Processing
Pramod Singh1
And then, again, that little, soft, shy, tearful trembler, for Statira, to
hear her recite—
‘He speaks the kindest words, and looks
such things,
Vows with such passion, swears with so
much grace,
That ’tis a kind of heaven to be deluded
by him.’
What a play we might have run up!—I was a beast not to think of it
before I sent them off—I to be Alexander—Claud Halcro, Lysimachus
—this old gentleman might have made a Clytus, for a pinch. I was
an idiot not to think of it!”
There was much in this effusion which might have displeased the
Udaller; but, to speak truth, he paid no attention to it. His eye, and,
finally, his spy-glass, were employed in watching the return of his
daughters to the shore. He saw them land on the beach, and,
accompanied by Halcro, and another man, (Fletcher, doubtless,) he
saw them ascend the acclivity, and proceed upon the road to
Kirkwall; and he could even distinguish that Minna, as if considering
herself as the guardian of the party, walked a little aloof from the
rest, on the watch, as it seemed, against surprise, and ready to act
as occasion should require. At length, as the Udaller was just about
to lose sight of them, he had the exquisite satisfaction to see the
party halt, and the pirate leave them, after a space just long enough
for a civil farewell, and proceed slowly back, on his return to the
beach. Blessing the Great Being who had thus relieved him from the
most agonizing fears which a father can feel, the worthy Udaller,
from that instant, stood resigned to his own fate, whatever that
might be.
I fancy they halted just now, taking us, as they saw us on the brow
of the hill, for a party of the sloop’s men, and now they can
distinguish that you wear petticoats, they are moving on again.”
They came on accordingly, and proved to be, as Claud Halcro had
suggested, a patrol sent out to watch the motions of the pirates, and
to prevent their attempting descents to damage the country.
They heartily congratulated Claud Halcro, who was well known to
more than one of them, upon his escape from captivity; and the
commander of the party, while offering every assistance to the
ladies, could not help condoling with them on the circumstances in
which their father stood, hinting, though in a delicate and doubtful
manner, the difficulties which might be in the way of his liberation.
When they arrived at Kirkwall, and obtained an audience of the
Provost, and one or two of the Magistrates, these difficulties were
more plainly insisted upon.—“The Halcyon frigate is upon the coast,”
said the Provost; “she was seen off Duncansbay-head; and, though I
have the deepest respect for Mr. Troil of Burgh-Westra, yet I shall be
answerable to law if I release from prison the Captain of this
suspicious vessel, on account of the safety of any individual who
may be unhappily endangered by his detention. This man is now
known to be the heart and soul of these buccaniers, and am I at
liberty to send him aboard, that he may plunder the country, or
perhaps go fight the King’s ship?—for he has impudence enough for
any thing.”
“Courage enough for any thing, you mean, Mr. Provost,” said
Minna, unable to restrain her displeasure.
“Why, you may call it as you please, Miss Troil,” said the worthy
Magistrate; “but, in my opinion, that sort of courage which proposes
to fight singly against two, is little better than a kind of practical
impudence.”
“But our father?” said Brenda, in a tone of the most earnest
entreaty—“our father—the friend, I may say the father, of his
country—to whom so many look for kindness, and so many for
actual support—whose loss would be the extinction of a beacon in a
storm—will you indeed weigh the risk which he runs, against such a
trifling thing as letting an unfortunate man from prison, to seek his
unhappy fate elsewhere?”
“Miss Brenda is right,” said Claud Halcro; “I am for let-a-be for
let-a-be, as the boys say; and never fash about a warrant of
liberation, Provost, but just take a fool’s counsel, and let the
goodman of the jail forget to draw his bolt on the wicket, or leave a
chink of a window open, or the like, and we shall be rid of the rover,
and have the one best honest fellow in Orkney or Zetland on the lee-
side of a bowl of punch with us in five hours.”
The Provost replied in nearly the same terms as before, that he
had the highest respect for Mr. Magnus Troil of Burgh-Westra, but
that he could not suffer his consideration for any individual, however
respectable, to interfere with the discharge of his duty.
Minna then addressed her sister in a tone of calm and sarcastic
displeasure.—“You forget,” she said, “Brenda, that you are talking of
the safety of a poor insignificant Udaller of Zetland, to no less a
person than the Chief Magistrate of the metropolis of Orkney—can
you expect so great a person to condescend to such a trifling subject
of consideration? It will be time enough for the Provost to think of
complying with the terms sent to him—for comply with them at
length he both must and will—when the Church of Saint Magnus is
beat down about his ears.”
“You may be angry with me, my pretty young lady,” said the
good-humoured Provost Torfe, “but I cannot be offended with you.
The Church of Saint Magnus has stood many a day, and, I think, will
outlive both you and me, much more yonder pack of unhanged
dogs. And besides that your father is half an Orkneyman, and has
both estate and friends among us, I would, I give you my word, do
as much for a Zetlander in distress as I would for any one, excepting
one of our own native Kirkwallers, who are doubtless to be
preferred. And if you will take up your lodgings here with my wife
and myself, we will endeavour to show you,” continued he, “that you
are as welcome in Kirkwall, as ever you could be in Lerwick or
Scalloway.”
Minna deigned no reply to this good-humoured invitation, but
Brenda declined it in civil terms, pleading the necessity of taking up
their abode with a wealthy widow of Kirkwall, a relation, who already
expected them.
Halcro made another attempt to move the Provost, but found
him inexorable.—“The Collector of the Customs had already
threatened,” he said, “to inform against him for entering into treaty,
or, as he called it, packing and peeling with those strangers, even
when it seemed the only means of preventing a bloody affray in the
town; and, should he now forego the advantage afforded by the
imprisonment of Cleveland and the escape of the Factor, he might
incur something worse than censure.” The burden of the whole was,
“that he was sorry for the Udaller, he was sorry even for the lad
Cleveland, who had some sparks of honour about him; but his duty
was imperious, and must be obeyed.” The Provost then precluded
farther argument, by observing, that another affair from Zetland
called for his immediate attention. A gentleman named Mertoun,
residing at Jarlshof, had made complaint against Snailsfoot the
Jagger, for having assisted a domestic of his in embezzling some
valuable articles which had been deposited in his custody, and he
was about to take examinations on the subject, and cause them to
be restored to Mr. Mertoun, who was accountable for them to the
right owner.
In all this information, there was nothing which seemed
interesting to the sisters excepting the word Mertoun, which went
like a dagger to the heart of Minna, when she recollected the
circumstances under which Mordaunt Mertoun had disappeared, and
which, with an emotion less painful, though still of a melancholy
nature, called a faint blush into Brenda’s cheek, and a slight degree
of moisture into her eye. But it was soon evident that the Magistrate
spoke not of Mordaunt, but of his father; and the daughters of
Magnus, little interested in his detail, took leave of the Provost to go
to their own lodgings.
When they arrived at their relation’s, Minna made it her business
to learn, by such enquiries as she could make without exciting
suspicion, what was the situation of the unfortunate Cleveland,
which she soon discovered to be exceedingly precarious. The
Provost had not, indeed, committed him to close custody, as Claud
Halcro had anticipated, recollecting, perhaps, the favourable
circumstances under which he had surrendered himself, and loath,
till the moment of the last necessity, altogether to break faith with
him. But although left apparently at large, he was strictly watched
by persons well armed and appointed for the purpose, who had
directions to detain him by force, if he attempted to pass certain
narrow precincts which were allotted to him. He was quartered in a
strong room within what is called the King’s Castle, and at night his
chamber door was locked on the outside, and a sufficient guard
mounted to prevent his escape. He therefore enjoyed only the
degree of liberty which the cat, in her cruel sport, is sometimes
pleased to permit to the mouse which she has clutched; and yet,
such was the terror of the resources, the courage, and ferocity of
the pirate Captain, that the Provost was blamed by the Collector, and
many other sage citizens of Kirkwall, for permitting him to be at
large upon any conditions.
It may be well believed, that, under such circumstances,
Cleveland had no desire to seek any place of public resort, conscious
that he was the object of a mixed feeling of curiosity and terror. His
favourite place of exercise, therefore, was the external aisles of the
Cathedral of Saint Magnus, of which the eastern end alone is fitted
up for public worship. This solemn old edifice, having escaped the
ravage which attended the first convulsions of the Reformation, still
retains some appearance of episcopal dignity. This place of worship
is separated by a screen from the nave and western limb of the
cross, and the whole is preserved in a state of cleanliness and
decency, which might be well proposed as an example to the proud
piles of Westminster and St. Paul’s.
It was in this exterior part of the Cathedral that Cleveland was
permitted to walk, the rather that his guards, by watching the single
open entrance, had the means, with very little inconvenience to
themselves, of preventing any possible attempt at escape. The place
itself was well suited to his melancholy circumstances. The lofty and
vaulted roof rises upon ranges of Saxon pillars, of massive size, four
of which, still larger than the rest, once supported the lofty spire,
which, long since destroyed by accident, has been rebuilt upon a
disproportioned and truncated plan. The light is admitted at the
eastern end through a lofty, well-proportioned, and richly-
ornamented Gothic window; and the pavement is covered with
inscriptions, in different languages, distinguishing the graves of
noble Orcadians, who have at different times been deposited within
the sacred precincts.
Here walked Cleveland, musing over the events of a misspent
life, which, it seemed probable, might be brought to a violent and
shameful close, while he was yet in the prime of youth.—“With these
dead,” he said, looking on the pavement, “shall I soon be numbered
—but no holy man will speak a blessing; no friendly hand register an
inscription; no proud descendant sculpture armorial bearings over
the grave of the pirate Cleveland. My whitening bones will swing in
the gibbet-irons, on some wild beach or lonely cape, that will be
esteemed fatal and accursed for my sake. The old mariner, as he
passes the Sound, will shake his head, and tell of my name and
actions, as a warning to his younger comrades.—But, Minna! Minna!
—what will be thy thoughts when the news reaches thee?—Would to
God the tidings were drowned in the deepest whirlpool betwixt
Kirkwall and Burgh-Westra, ere they came to her ear!—and O! would
to Heaven that we had never met, since we never can meet again!”
He lifted up his eyes as he spoke, and Minna Troil stood before
him. Her face was pale, and her hair dishevelled; but her look was
composed and firm, with its usual expression of high-minded
melancholy. She was still shrouded in the large mantle which she
had assumed on leaving the vessel. Cleveland’s first emotion was
astonishment; his next was joy, not unmixed with awe. He would
have exclaimed—he would have thrown himself at her feet—but she
imposed at once silence and composure on him, by raising her
finger, and saying, in a low but commanding accent,—“Be cautious—
we are observed—there are men without—they let me enter with
difficulty. I dare not remain long—they would think—they might
believe—O, Cleveland! I have hazarded every thing to save you!”
“To save me?—Alas! poor Minna!” answered Cleveland, “to save
me is impossible.—Enough that I have seen you once more, were it
but to say, for ever farewell!”
“We must indeed say farewell,” said Minna; “for fate, and your
guilt, have divided us for ever.—Cleveland, I have seen your
associates—need I tell you more—need I say, that I know now what
a pirate is?”
“You have been in the ruffians’ power!” said Cleveland, with a
start of agony—“Did they presume”——
“Cleveland,” replied Minna, “they presumed nothing—your name
was a spell over them. By the power of that spell over these
ferocious banditti, and by that alone, I was reminded of the qualities
I once thought my Cleveland’s!”
“Yes,” said Cleveland, proudly, “my name has and shall have
power over them, when they are at the wildest; and, had they
harmed you by one rude word, they should have found—Yet what do
I rave about—I am a prisoner!”
“You shall be so no longer,” said Minna—“Your safety—the safety
of my dear father—all demand your instant freedom. I have formed
a scheme for your liberty, which, boldly executed, cannot fail. The
light is fading without—muffle yourself in my cloak, and you will
easily pass the guards—I have given them the means of carousing,
and they are deeply engaged. Haste to the Loch of Stennis, and hide
yourself till day dawns; then make a smoke on the point, where the
land, stretching into the lake on each side, divides it nearly in two at
the Bridge of Broisgar. Your vessel, which lies not far distant, will
send a boat ashore.—Do not hesitate an instant!”
“But you, Minna!—Should this wild scheme succeed,” said
Cleveland, “what is to become of you?”
“For my share in your escape,” answered the maiden, “the
honesty of my own intention will vindicate me in the sight of
Heaven; and the safety of my father, whose fate depends on yours,
will be my excuse to man.”
In a few words, she gave him the history of their capture, and its
consequences. Cleveland cast up his eyes and raised his hands to
Heaven, in thankfulness for the escape of the sisters from his evil
companions, and then hastily added,—“But you are right, Minna; I
must fly at all rates—for your father’s sake I must fly.—Here, then,
we part—yet not, I trust, for ever.”
“For ever!” answered a voice, that sounded as from a sepulchral
vault.
They started, looked around them, and then gazed on each
other. It seemed as if the echoes of the building had returned
Cleveland’s last words, but the pronunciation was too emphatically
accented.
“Yes, for ever!” said Norna of the Fitful-head, stepping forward
from behind one of the massive Saxon pillars which support the roof
of the Cathedral. “Here meet the crimson foot and the crimson hand.
Well for both that the wound is healed whence that crimson was
derived—well for both, but best, for him who shed it.—Here, then,
you meet—and meet for the last time!”
“Not so,” said Cleveland, as if about to take Minna’s hand; “to
separate me from Minna, while I have life, must be the work of
herself alone.”
“Away!” said Norna, stepping betwixt them,—“away with such
idle folly!—Nourish no vain dreams of future meetings—you part
here, and you part for ever. The hawk pairs not with the dove; guilt
matches not with innocence.—Minna Troil, you look for the last time
on this bold and criminal man—Cleveland, you behold Minna for the
last time!”
“And dream you,” said Cleveland, indignantly, “that your
mummery imposes on me, and that I am among the fools who see
more than trick in your pretended art?”
“Forbear, Cleveland, forbear!” said Minna, her hereditary awe of
Norna augmented by the circumstance of her sudden appearance.
“O, forbear!—she is powerful—she is but too powerful.—And do you,
O Norna, remember my father’s safety is linked with Cleveland’s.”
“And it is well for Cleveland that I do remember it,” replied the
Pythoness—“and that, for the sake of one, I am here to aid both.
You, with your childish purpose, of passing one of his bulk and
stature under the disguise of a few paltry folds of wadmaal—what
would your device have procured him but instant restraint with bolt
and shackle?—I will save him—I will place him in security on board
his bark. But let him renounce these shores for ever, and carry
elsewhere the terrors of his sable flag, and his yet blacker name; for
if the sun rises twice, and finds him still at anchor, his blood be on
his own head.—Ay, look to each other—look the last look that I
permit to frail affection,—and say, if ye can say it, Farewell for ever!”
“Obey her,” stammered Minna; “remonstrate not, but obey her.”
Cleveland, grasping her hand, and kissing it ardently, said, but so
low that she only could hear it, “Farewell, Minna, but not for ever.”
“And now, maiden, begone,” said Norna, “and leave the rest to
the Reimkennar.”
“One word more,” said Minna, “and I obey you. Tell me but if I
have caught aright your meaning—Is Mordaunt Mertoun safe and
recovered?”
“Recovered, and safe,” said Norna; “else woe to the hand that
shed his blood!”
Minna slowly sought the door of the Cathedral, and turned back
from time to time to look at the shadowy form of Norna, and the
stately and military figure of Cleveland, as they stood together in the
deepening gloom of the ancient Cathedral. When she looked back a
second time they were in motion, and Cleveland followed the
matron, as, with a slow and solemn step, she glided towards one of
the side aisles. When Minna looked back a third time, their figures
were no longer visible. She collected herself, and walked on to the
eastern door by which she had entered, and listened for an instant
to the guard, who talked together on the outside.
“The Zetland girl stays a long time with this pirate fellow,” said
one. “I wish they have not more to speak about than the ransom of
her father.”
“Ay, truly,” answered another, “the wenches will have more
sympathy with a handsome young pirate, than an old bed-ridden
burgher.”
Their discourse was here interrupted by her of whom they were
speaking; and, as if taken in the manner, they pulled off their hats,
made their awkward obeisances, and looked not a little embarrassed
and confused.
Minna returned to the house where she lodged, much affected,
yet, on the whole, pleased with the result of her expedition, which
seemed to put her father out of danger, and assured her at once of
the escape of Cleveland, and of the safety of young Mordaunt. She
hastened to communicate both pieces of intelligence to Brenda, who
joined her in thankfulness to Heaven, and was herself wellnigh
persuaded to believe in Norna’s supernatural pretensions, so much
was she pleased with the manner in which they had been employed.
Some time was spent in exchanging their mutual congratulations,
and mingling tears of hope, mixed with apprehension; when, at a
late hour in the evening, they were interrupted by Claud Halcro,
who, full of a fidgeting sort of importance, not unmingled with fear,
came to acquaint them, that the prisoner, Cleveland, had
disappeared from the Cathedral, in which he had been permitted to
walk, and that the Provost, having been informed that Minna was
accessary to his flight, was coming, in a mighty quandary, to make
enquiry into the circumstances.
When the worthy Magistrate arrived, Minna did not conceal from
him her own wish that Cleveland should make his escape, as the
only means which she saw of redeeming her father from imminent
danger. But that she had any actual accession to his flight, she
positively denied; and stated, “that she had parted from Cleveland in
the Cathedral, more than two hours since, and then left him in
company with a third person, whose name she did not conceive
herself obliged to communicate.”
“It is not needful, Miss Minna Troil,” answered Provost Torfe; “for,
although no person but this Captain Cleveland and yourself was seen
to enter the Kirk of St. Magnus this day, we know well enough that
your cousin, old Ulla Troil, whom you Zetlanders call Norna of Fitful-
head, has been cruising up and down, upon sea and land, and air,
for what I know, in boats and on ponies, and it may be on
broomsticks; and here has been her dumb Drow, too, coming and
going, and playing the spy on every one—and a good spy he is, for
he can hear every thing, and tells nothing again, unless to his
mistress. And we know, besides, that she can enter the Kirk when all
the doors are fast, and has been seen there more than once, God
save us from the Evil One!—and so, without farther questions asked,
I conclude it was old Norna whom you left in the Kirk with this
slashing blade—and, if so, they may catch them again that can.—I
cannot but say, however, pretty Mistress Minna, that you Zetland
folks seem to forget both law and gospel, when you use the help of
witchcraft to fetch delinquents out of a legal prison; and the least
that you, or your cousin, or your father, can do, is to use influence
with this wild fellow to go away as soon as possible, without hurting
the town or trade, and then there will be little harm in what has
chanced; for, Heaven knows, I did not seek the poor lad’s life, so I
could get my hands free of him without blame; and far less did I
wish, that, through his imprisonment, any harm should come to
worthy Magnus Troil of Burgh-Westra.”
“I see where the shoe pinches you, Mr. Provost,” said Claud
Halcro, “and I am sure I can answer for my friend Mr. Troil, as well
as for myself, that we will say and do all in our power with this man,
Captain Cleveland, to make him leave the coast directly.”
“And I,” said Minna, “am so convinced that what you recommend
is best for all parties, that my sister and I will set off early to-morrow
morning to the House of Stennis, if Mr. Halcro will give us his escort,
to receive my father when he comes ashore, that we may acquaint
him with your wish, and to use every influence to induce this
unhappy man to leave the country.”
Provost Torfe looked upon her with some surprise. “It is not
every young woman,” he said, “would wish to move eight miles
nearer to a band of pirates.”
“We run no risk,” said Claud Halcro, interfering. “The House of
Stennis is strong; and my cousin, whom it belongs to, has men and
arms within it. The young ladies are as safe there as in Kirkwall; and
much good may arise from an early communication between Magnus
Troil and his daughters. And happy am I to see, that in your case,
my good old friend,—as glorious John says,—
The sun was high in heaven; the boats were busily fetching off
from the shore the promised supply of provisions and water, which,
as many fishing skiffs were employed in the service, were got on
board with unexpected speed, and stowed away by the crew of the
sloop, with equal dispatch. All worked with good will; for all, save
Cleveland himself, were weary of a coast, where every moment
increased their danger, and where, which they esteemed a worse
misfortune, there was no booty to be won. Bunce and Derrick took
the immediate direction of this duty, while Cleveland, walking the
deck alone, and in silence, only interfered from time to time, to give
some order which circumstances required, and then relapsed into his
own sad reflections.
There are two sorts of men whom situations of guilt, terror, and
commotion, bring forward as prominent agents. The first are spirits
so naturally moulded and fitted for deeds of horror, that they stalk
forth from their lurking-places like actual demons, to work in their
native element, as the hideous apparition of the Bearded Man came
forth at Versailles, on the memorable 5th October, 1789, the
delighted executioner of the victims delivered up to him by a
bloodthirsty rabble. But Cleveland belonged to the second class of
these unfortunate beings, who are involved in evil rather by the
concurrence of external circumstances than by natural inclination,
being, indeed, one in whom his first engaging in this lawless mode
of life, as the follower of his father, nay, perhaps, even his pursuing
it as his father’s avenger, carried with it something of mitigation and
apology;—one also who often considered his guilty situation with
horror, and had made repeated, though ineffectual efforts, to escape
from it.
Such thoughts of remorse were now rolling in his mind, and he
may be forgiven, if recollections of Minna mingled with and aided
them. He looked around, too, on his mates, and, profligate and
hardened as he knew them to be, he could not think of their paying
the penalty of his obstinacy. “We shall be ready to sail with the ebb
tide,” he said to himself—“why should I endanger these men, by
detaining them till the hour of danger, predicted by that singular
woman, shall arrive? Her intelligence, howsoever acquired, has been
always strangely accurate; and her warning was as solemn as if a
mother were to apprize an erring son of his crimes, and of his
approaching punishment. Besides, what chance is there that I can
again see Minna? She is at Kirkwall, doubtless, and to hold my
course thither would be to steer right upon the rocks. No, I will not
endanger these poor fellows—I will sail with the ebb tide. On the
desolate Hebrides, or on the north-west coast of Ireland, I will leave
the vessel, and return hither in some disguise—yet why should I
return, since it will perhaps be only to see Minna the bride of
Mordaunt? No—let the vessel sail with this ebb tide without me. I
will abide and take my fate.”
His meditations were here interrupted by Jack Bunce, who,
hailing him noble Captain, said they were ready to sail when he
pleased.
“When you please, Bunce; for I shall leave the command with
you, and go ashore at Stromness,” said Cleveland.
“You shall do no such matter, by Heaven!” answered Bunce. “The
command with me, truly! and how the devil am I to get the crew to
obey me? Why, even Dick Fletcher rides rusty on me now and then.
You know well enough that, without you, we shall be all at each
other’s throats in half an hour; and, if you desert us, what a rope’s
end does it signify whether we are destroyed by the king’s cruisers,
or by each other? Come, come, noble Captain, there are black-eyed
girls enough in the world, but where will you find so tight a sea-boat
as the little Favourite here, manned as she is with a set of tearing
lads,
“You are a precious fool, Jack Bunce,” said Cleveland, half angry,
and, in despite of himself, half diverted, by the false tones and
exaggerated gesture of the stage-struck pirate.
“It may be so, noble Captain,” answered Bunce, “and it may be
that I have my comrades in my folly. Here are you, now, going to
play All for Love, and the World well Lost, and yet you cannot bear a
harmless bounce in blank verse—Well, I can talk prose for the
matter, for I have news enough to tell—and strange news, too—ay,
and stirring news to boot.”
“Well, prithee deliver them (to speak thy own cant) like a man of
this world.”
“The Stromness fishers will accept nothing for their provisions
and trouble,” said Bunce—“there is a wonder for you!”
“And for what reason, I pray?” said Cleveland; “it is the first time
I have ever heard of cash being refused at a seaport.”
“True—they commonly lay the charges on as thick as if they were
caulking. But here is the matter. The owner of the brig yonder, the
father of your fair Imoinda, stands paymaster, by way of thanks for
the civility with which we treated his daughters, and that we may
not meet our due, as he calls it, on these shores.”
“It is like the frank-hearted old Udaller!” said Cleveland; “but is
he at Stromness? I thought he was to have crossed the island for
Kirkwall.”
“He did so purpose,” said Bunce; “but more folks than King
Duncan change the course of their voyage. He was no sooner ashore
than he was met with by a meddling old witch of these parts, who
has her finger in every man’s pie, and by her counsel he changed his
purpose of going to Kirkwall, and lies at anchor for the present in
yonder white house, that you may see with your glass up the lake
yonder. I am told the old woman clubbed also to pay for the sloop’s
stores. Why she should shell out the boards I cannot conceive an
idea, except that she is said to be a witch, and may befriend us as
so many devils.”
“But who told you all this?” said Cleveland, without using his spy-
glass, or seeming so much interested in the news as his comrade
had expected.
“Why,” replied Bunce, “I made a trip ashore this morning to the
village, and had a can with an old acquaintance, who had been sent
by Master Troil to look after matters, and I fished it all out of him,
and more, too, than I am desirous of telling you, noble Captain.”
“And who is your intelligencer?” said Cleveland; “has he got no
name?”
“Why, he is an old, fiddling, foppish acquaintance of mine, called
Halcro, if you must know,” said Bunce.
“Halcro!” echoed Cleveland, his eyes sparkling with surprise
—“Claud Halcro?—why, he went ashore at Inganess with Minna and
her sister—Where are they?”
“Why, that is just what I did not want to tell you,” replied the
confidant—“yet hang me if I can help it, for I cannot baulk a fine
situation.—That start had a fine effect—O ay, and the spy-glass is
turned on the House of Stennis now!—Well, yonder they are, it must
be confessed—indifferently well guarded, too. Some of the old
witch’s people are come over from that mountain of an island—Hoy,
as they call it; and the old gentleman has got some fellows under
arms himself. But what of all that, noble Captain!—give you but the
word, and we snap up the wenches to-night—clap them under
hatches—man the capstern by daybreak—up topsails—and sail with
the morning tide.”
“You sicken me with your villainy,” said Cleveland, turning away
from him.
“Umph!—villainy, and sicken you!” said Bunce—“Now, pray, what
have I said but what has been done a thousand times by gentlemen
of fortune like ourselves?”
“Mention it not again,” said Cleveland; then took a turn along the
deck, in deep meditation, and, coming back to Bunce, took him by
the hand, and said, “Jack, I will see her once more.”
“With all my heart,” said Bunce, sullenly.
“Once more will I see her, and it may be to abjure at her feet this
cursed trade, and expiate my offences”——
“At the gallows!” said Bunce, completing the sentence—“With all
my heart!—confess and be hanged is a most reverend proverb.”
“Nay—but, dear Jack!” said Cleveland.
“Dear Jack!” answered Bunce, in the same sullen tone—“a dear
sight you have been to dear Jack. But hold your own course—I have
done with caring for you for ever—I should but sicken you with my
villainous counsels.”
“Now, must I soothe this silly fellow as if he were a spoiled child,”
said Cleveland, speaking at Bunce, but not to him; “and yet he has
sense enough, and bravery enough, too; and, one would think,
kindness enough to know that men don’t pick their words during a
gale of wind.”
“Why, that’s true, Clement,” said Bunce, “and there is my hand
upon it—And, now I think upon’t, you shall have your last interview,
for it’s out of my line to prevent a parting scene; and what signifies a
tide—we can sail by to-morrow’s ebb as well as by this.”
Cleveland sighed, for Norna’s prediction rushed on his mind; but
the opportunity of a last meeting with Minna was too tempting to be
resigned either for presentiment or prediction.
“I will go presently ashore to the place where they all are,” said
Bunce; “and the payment of these stores shall serve me for a
pretext; and I will carry any letters or message from you to Minna
with the dexterity of a valet de chambre.”
“But they have armed men—you may be in danger,” said
Cleveland.
“Not a whit—not a whit,” replied Bunce. “I protected the wenches
when they were in my power; I warrant their father will neither
wrong me, nor see me wronged.”
“You say true,” said Cleveland, “it is not in his nature. I will
instantly write a note to Minna.” And he ran down to the cabin for
that purpose, where he wasted much paper, ere, with a trembling
hand, and throbbing heart, he achieved such a letter as he hoped
might prevail on Minna to permit him a farewell meeting on the
succeeding morning.
His adherent, Bunce, in the meanwhile, sought out Fletcher, of
whose support to second any motion whatever, he accounted
himself perfectly sure; and, followed by this trusty satellite, he
intruded himself on the awful presence of Hawkins the boatswain,
and Derrick the quarter-master, who were regaling themselves with
a can of rumbo, after the fatiguing duty of the day.
“Here comes he can tell us,” said Derrick.—“So, Master
Lieutenant, for so we must call you now, I think, let us have a peep
into your counsels—When will the anchor be a-trip?”
“When it pleases heaven, Master Quarter-master,” answered
Bunce, “for I know no more than the stern-post.”
“Why, d—n my buttons,” said Derrick, “do we not weigh this
tide?”
“Or to-morrow’s tide, at farthest?” said the Boatswain—“Why,
what have we been slaving the whole company for, to get all these
stores aboard?”
“Gentlemen,” said Bunce, “you are to know that Cupid has laid
our Captain on board, carried the vessel, and nailed down his wits
under hatches.”
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
textbookfull.com